Method and device for identifying round beads on an optical positioning device in CBCT tomographic images

By cutting and filtering the view of the CBCT tomographic image, the three-dimensional coordinates of the ball on the optical positioning device are determined, which solves the problem of difficulty in accurately locating the center of the ball and improves the precision and accuracy of oral implantation.

CN114708205BActive Publication Date: 2024-08-30LANCET ROBOTICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210294206.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-24
Publication Date
2024-08-30
Estimated Expiration
2042-03-24

AI Technical Summary

Technical Problem

It is difficult to accurately locate the center position of the ball on the optical positioning device in the CBCT tomographic image, which results in increased manual marking time and reduced accuracy. In particular, the application of adhesive causes the shape of the ball to deform and its brightness to be close to other tissues, which increases the difficulty of identification.

Method used

By acquiring the CBCT tomographic image and cutting it into the cross-sectional, coronal and sagittal views of the three-dimensional image, performing a filtering operation to determine the center area of ​​the circle to be determined, calculating the center area with the largest area in each view, and determining the circle after sorting and filtering The three-dimensional coordinates of the ball are used to accurately position the center of the ball on the optical positioning device.

Benefits of technology

The center of the ball on the optical positioning device is quickly and accurately obtained from the CBCT tomographic image, which improves the accuracy of the precision calculation of the robot's oral implantation and realizes the digitization and precision of oral implantation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114708205B
    Figure CN114708205B
Patent Text Reader

Abstract

The present invention discloses a method and device for identifying a bead on an optical positioning device in a CBCT tomographic image, wherein the method comprises: obtaining a CBCT tomographic image to obtain a cross-sectional view group, a coronal view group, and a sagittal view group; obtaining one or more to-be-determined center areas of each view; obtaining the number of concentric circles corresponding to the same center in different views; filtering the to-be-determined center areas based on the sorting results of the number of concentric circles; and determining the three-dimensional coordinates of each bead on the optical positioning device based on the to-be-determined center areas retained after filtering. The method can quickly and accurately obtain the center of the bead on the optical positioning device from the CBCT tomographic image, thereby assisting in improving the accuracy of the robot oral implant precision calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to a method and a device for identifying a round bead on an optical positioning device in a CBCT tomographic image. Background Art

[0002] Robot-assisted oral implantation is a popular technology field that has emerged in recent years. Robot-assisted implantation can improve the accuracy of implantation. The supporting navigation system can display the implantation status in real time, providing objective and quantifiable data and indicators for doctors to judge the accuracy of implantation. To evaluate the implantation accuracy, it is necessary to fuse and register the postoperative cone beam CT (CBCT) images and the preoperative CBCT tomographic images. The fusion registration algorithm needs to use the ICP algorithm (Iterative Closest Point) to calculate the transformation matrix between the marker points in the two 3D images, and then use the transformation matrix to fuse the two images. Finally, the angle and distance deviation between the postoperative implant and the preoperative implant is calculated from the fused image to evaluate the implant accuracy of the robot.

[0003] The marking point in the CBCT tomographic image refers to the center of the spherical object formed by the beads on the optical positioning device in the image. The material of these beads can be iron, titanium, etc. The beads on the optical positioning device have high brightness in the CBCT tomographic image and are easy to distinguish from other tissues. However, in order to fix the optical positioning device on the patient's teeth, more adhesive is often applied. The application of adhesive will cause the deformation of the beads on the optical positioning device in the CBCT tomographic image, from the original spherical shape to various irregular shapes, such as olive shape. Moreover, the brightness of the adhesive imaging in the CBCT tomographic image is close to that of the beads. This brings great difficulty to manually marking the center position of the beads on the optical positioning device in the CBCT tomographic image, which not only increases the recognition time in manual marking, but also makes it difficult to accurately mark the marking point to the center position of the beads. Summary of the invention

[0004] The present invention provides a method and device for identifying a round bead on an optical positioning device in a CBCT tomographic image, which can solve the technical problem that the center position of the round bead on the optical positioning device in the CBCT tomographic image is difficult to accurately locate.

[0005] In the above-mentioned method embodiments of the present invention, the method for identifying the round bead on the optical positioning device in the CBCT tomographic image includes:

[0006] Step S1: acquiring a CBCT tomographic image, wherein the CBCT tomographic image includes a plurality of images taken of the optical positioning device and arranged in a vertical direction; cutting a three-dimensional image corresponding to the CBCT tomographic image to obtain a cross-sectional view group, a coronal view group, and a sagittal view group of the three-dimensional image; taking the Cartesian coordinate system of the CBCT tomographic image as a reference coordinate system, cutting the three-dimensional image along the Z-axis direction to obtain a cross-sectional view group, wherein the cross-sectional view group includes one or more cross-sectional views, cutting the three-dimensional image along the Y-axis direction to obtain a coronal view group, wherein the coronal view group includes one or more coronal views, and cutting the three-dimensional image along the X-axis direction to obtain a sagittal view group, wherein the sagittal view group includes one or more sagittal views;

[0007] Step S2: performing a filtering operation on the non-blank area in each of the cross-sectional view group, the coronal view group, and the sagittal view group, that is, the area with the object outline, to obtain one or more center areas to be determined in each view;

[0008] Step S3, obtaining the center of each bead on the optical positioning device in the cross-sectional view; the to-be-determined center areas in different cross-sectional views corresponding to the center of the same bead constitute concentric circles, and obtaining the number of the to-be-determined center areas corresponding to each concentric circle {num11,…,num1 j ,…,num1 znum}; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area max1 among the corresponding to-be-determined circle center areas j , record the largest area to be determined center area max1 j The three-dimensional coordinates in the CBCT tomographic image; wherein, 1≤j≤znum, znum is the number of beads on the optical positioning device, num1 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the cross-sectional view group;

[0009] Step S4, obtaining the center of each bead on the optical positioning device in the coronal view; the to-be-determined center areas in different coronal views corresponding to the center of the same bead constitute concentric circles, and obtaining the number of the to-be-determined center areas corresponding to each concentric circle {num21,…,num2 j ,…,num2 znum}; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area among the corresponding to-be-determined circle center areas max2 j , record the largest area to be determined center area max2 j The three-dimensional coordinates in the CBCT tomographic image; wherein num2j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the coronal view group;

[0010] Step S5, obtaining the center of each bead on the optical positioning device in the sagittal plane view; the to-be-determined center areas in different sagittal plane views corresponding to the center of the same bead constitute concentric circles, and obtaining the number of the to-be-determined center areas corresponding to each concentric circle {num31, ..., num3 j ,…,num3 znum}; For each concentric circle, obtain the largest area of ​​the corresponding to-be-determined circle center area max3 j , record the largest area to be determined center area max3 j The three-dimensional coordinates in the CBCT tomographic image; wherein num3 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the sagittal view group;

[0011] Step S6, {num11,…,num1 j ,…,num1 znum}、{num21,…,num2 j ,…,num2 znum}、{num31,…,num3 j ,…,num3 znum} Sort all the values ​​in it from largest to smallest, and get the first znum+1 values ​​in the sorted result;

[0012] For each value val in the first znum+1 values node , get val node The corresponding coordinate x of the largest area to be determined is on the X-axis node , calculate the average

[0013] The dimension K of the CBCT tomographic image in the X-axis direction is obtained, where the value of K is equal to the number of the sagittal views in the sagittal view group; based on the average value Average and the dimension K, the to-be-determined center area with the largest area corresponding to the first znum+1 values ​​is filtered; based on the to-be-determined center area retained after filtering, the three-dimensional coordinates of each bead on the optical positioning device are determined.

[0014] Optionally, the three-dimensional coordinate is an index coordinate value, wherein the index coordinate value represents the serial number of the current voxel or pixel relative to the origin pixel of the entire view.

[0015] Optionally, the CBCT tomographic image includes a plurality of image sequences, each image has a size of D×D, then a three-dimensional image formed by combining all the images has a size of D×D×N, and after slicing the three-dimensional image, the cross-sectional view group includes N cross-sectional views, each cross-sectional view has a size of D×D; the coronal view group includes D coronal views, each coronal view has a size of D×N; the sagittal view group includes D sagittal views, each sagittal view has a size of D×N.

[0016] Optionally, in step S2, the radius R of the ball is obtained in advance; in the view, the radius of the ball Where Spacing is the voxel spacing of the CBCT tomographic image, then in the view, the area of ​​the bead is CircleArea = πR' 2 , the circumference of the bead is ArcLength = 2πR', the threshold range of the bead area in the view is [0.5CircleArea, 1.5CircleArea], and the threshold range of the circumference of the bead in the view is [0.5ArcLength, 1.5ArcLength];

[0017] For all non-blank areas in each view in the view group, for each non-blank area in all non-blank areas in each view, obtain the perimeter and area of ​​the non-blank area; if the area of ​​the non-blank area is not within the threshold range of the bead area in the view, or the perimeter of the non-blank area is not within the threshold range of the bead perimeter in the view, then the non-blank area is a non-circular area and fails to pass the filtering; the non-blank area that passes the filtering is a quasi-circular area, and the quasi-circular area is used as the center area to be determined.

[0018] Optionally, the step S3, obtaining the center of each bead on the optical positioning device in the cross-sectional view; the center areas to be determined in different cross-sectional views corresponding to the center of the same bead form concentric circles, includes:

[0019] Get the number of beads in the optical positioning device and the zh of each bead j Coordinates in the cross-section view (X j ,Y j );For the center area R to be determined ni , determine its center O ni The coordinates are (X ni ,Y ni ), if the following conditions are met:

[0020] |X ni -X j |<R'

[0021] |Yni -Y j |<R'

[0022] Then the center area R to be determined ni With beads j is a subordinate relationship, that is, the center area to be determined is formed by the corresponding ball, the center area to be determined is a two-dimensional section, the ball is a three-dimensional spherical surface, and the center area to be determined R ni With beads j It has concentric axes; the center areas to be determined that are subordinate to the same ball constitute concentric circles.

[0023] Optionally, a matrix is ​​set to store information, wherein the matrix has five columns, namely X, Y, Z, Area, and UpdateTime, which are respectively used to represent the exponential coordinate value of a bead in the X-axis direction, the exponential coordinate value in the Y-axis direction, the exponential coordinate value in the Z-axis direction, the non-blank area with the largest area of ​​the bead that meets the filtering conditions in each view group, and the number of non-blank areas belonging to the bead.

[0024] Optionally, after step S6, step S7 is also included: based on the three-dimensional coordinates of each bead on the optical positioning device, determining the distance between each bead and other beads on the optical positioning device, and based on the pre-recorded distance information between each bead on the optical positioning device, determining the serial number of each bead.

[0025] Optionally, after step S7, step S8 is also included: determining the detection error based on the pre-recorded distance information between the beads on the optical positioning device and the detected distance information between the beads on the optical positioning device.

[0026] In the above-mentioned method embodiments of the present invention, the device for identifying the round bead on the optical positioning device in the CBCT tomographic image includes:

[0027] A cutting module: configured to obtain a CBCT tomographic image, wherein the CBCT tomographic image includes a plurality of images taken of the optical positioning device and arranged in a vertical direction; cut a three-dimensional image corresponding to the CBCT tomographic image to obtain a cross-sectional view group, a coronal view group, and a sagittal view group of the three-dimensional image; using the Cartesian coordinate system of the CBCT tomographic image as a reference coordinate system, cut the three-dimensional image along the Z-axis direction to obtain a cross-sectional view group, wherein the cross-sectional view group includes one or more cross-sectional views, cut the three-dimensional image along the Y-axis direction to obtain a coronal view group, wherein the coronal view group includes one or more coronal views, and cut the three-dimensional image along the X-axis direction to obtain a sagittal view group, wherein the sagittal view group includes one or more sagittal views;

[0028] The center region to be determined module is configured to perform a filtering operation on the non-blank area, that is, the area with the object outline, in each view of the cross-sectional view group, the coronal view group, and the sagittal view group to obtain one or more center regions to be determined in each view;

[0029] Cross-section processing module: configured to obtain the center of each bead on the optical positioning device in the cross-section view; the to-be-determined center area in different cross-section views corresponding to the center of the same bead constitutes concentric circles, and obtains the number of the to-be-determined center area corresponding to each concentric circle {num11,…,num1 j ,…,num1 znum}; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area max1 among the corresponding to-be-determined circle center areas j , record the largest area to be determined center area max1 j The three-dimensional coordinates in the CBCT tomographic image; wherein, 1≤j≤znum, znum is the number of beads on the optical positioning device, num1 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the cross-sectional view group;

[0030] Coronal plane processing module: configured to obtain the center of each bead on the optical positioning device in the coronal plane view; the to-be-determined center area corresponding to the center of the same bead in different coronal plane views constitutes concentric circles, and obtains the number of the to-be-determined center area corresponding to each concentric circle {num21,…,num2 j ,…,num2 znum}; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area among the corresponding to-be-determined circle center areas max2 j , record the largest area to be determined center area max2 j The three-dimensional coordinates in the CBCT tomographic image; wherein num2 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the coronal view group;

[0031] The sagittal plane processing module is configured to obtain the center of each bead on the optical positioning device in the sagittal plane view; the to-be-determined center areas in different sagittal plane views corresponding to the center of the same bead form concentric circles, and obtain the number of the to-be-determined center areas corresponding to each concentric circle {num31,…,num3 j ,…,num3 znum}; For each concentric circle, obtain the largest area of ​​the corresponding to-be-determined circle center area max3 j, record the largest area to be determined center area max3 j The three-dimensional coordinates in the CBCT tomographic image; wherein num3 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the sagittal view group;

[0032] Bead determination module: configured to convert {num11,…, num1 j ,…,num1 znum}、 {num21,…,num2 j ,…,num2 znum}、{num31,…,num3 j ,…,num3 znum} Sort all the values ​​in it from largest to smallest, and get the first znum+1 values ​​in the sorted result;

[0033] For each value val in the first znum+1 values node , get val node The corresponding coordinate x of the largest area to be determined is on the X-axis node , calculate the average

[0034] The dimension K of the CBCT tomographic image in the X-axis direction is obtained, where the value of K is equal to the number of the sagittal views in the sagittal view group; based on the average value Average and the dimension K, the to-be-determined center area with the largest area corresponding to the first znum+1 values ​​is filtered; based on the to-be-determined center area retained after filtering, the three-dimensional coordinates of each bead on the optical positioning device are determined.

[0035] In the above method embodiments of the present invention, a computer-readable storage medium is provided, wherein a plurality of instructions are stored in the storage medium, and the plurality of instructions are used for a processor to load and execute the above method.

[0036] In the above method embodiments of the present invention, an electronic device includes:

[0037] A processor, which is used to execute multiple instructions;

[0038] A memory for storing a plurality of instructions;

[0039] The plurality of instructions are used to be stored in the memory, and loaded and executed by the processor to implement the method as described above.

[0040] The present invention can quickly and accurately obtain the center of the ball on the optical positioning device from the CBCT tomographic image, thereby assisting in improving the accuracy of the robot's oral implant precision calculation, thereby realizing the digitization and precision of oral implantation.

[0041] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The above and other purposes, features and advantages of the present invention will become more apparent by describing the embodiments of the present invention in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0043] Figure 1A It is a schematic structural diagram of the optical positioning device with a ball according to the present invention.

[0044] Figure 1B It is a schematic diagram showing the position recording of a ball of an optical positioning device with a ball of the present invention.

[0045] Figure 2A It is a schematic diagram of the optical positioning device of the present invention.

[0046] Figure 2B It is a schematic diagram of imaging of a bead on an optical positioning device affected by glue in CBCT provided by an exemplary embodiment of the present invention.

[0047] Figure 2C It is a schematic diagram of imaging in CBCT without the influence of glue on the beads on the optical positioning device provided by an exemplary embodiment of the present invention.

[0048] Figure 3 It is a flowchart of a method for identifying a bead on an optical positioning device in a CBCT tomographic image provided by an exemplary embodiment of the present invention.

[0049] Figure 4A It is a schematic diagram of a cross-sectional view in a CBCT tomographic image provided by an exemplary embodiment of the present invention.

[0050] Figure 4B It is a schematic diagram of a sagittal section in a CBCT tomographic image provided by an exemplary embodiment of the present invention.

[0051] Figure 4C It is a schematic diagram of a coronal section in a CBCT tomographic image provided by an exemplary embodiment of the present invention.

[0052] Figure 4DIt is a schematic diagram of a three-dimensional rendering of a CBCT tomographic image provided by an exemplary embodiment of the present invention.

[0053] Figure 5A It is a schematic diagram of a CBCT tomographic image without an opening operation provided by an exemplary embodiment of the present invention.

[0054] Figure 5B It is a schematic diagram of a CBCT tomographic image during an opening operation provided by an exemplary embodiment of the present invention.

[0055] Fig. 6A Schematic diagram of a CBCT tomographic image after denoising provided by an exemplary embodiment of the present invention.

[0056] Figure 6B It is a schematic diagram of detecting round beads in a CBCT tomographic image after denoising according to contour area and size provided by an exemplary embodiment of the present invention.

[0057] Figure 7 It is a schematic diagram of recording the distance between beads on an optical positioning device provided by an exemplary embodiment of the present invention.

[0058] Fig. 8A It is a schematic diagram of a matrix for updating and recording the center of a ball on an optical positioning device provided by an exemplary embodiment of the present invention.

[0059] Figure 8B It is a schematic diagram of a recording matrix of beads on an optical positioning device provided by an exemplary embodiment of the present invention.

[0060] Fig. 9 It is a flowchart of a method for detecting round beads in a CBCT tomographic image provided by an exemplary embodiment of the present invention.

[0061] Fig.10 It is a flowchart of a method provided by another exemplary embodiment of the present invention.

[0062] Fig.11 It is a schematic structural diagram of a device for identifying a bead on an optical positioning device in a CBCT tomographic image provided by an exemplary embodiment of the present invention.

[0063] Fig.12 This is a structure of an electronic device provided by an exemplary embodiment of the present invention.

[0064] Reference numerals:

[0065] 0, the bead numbered 0 on the optical positioning device; 1, the bead numbered 1 on the optical positioning device; 2, the bead numbered 2 on the optical positioning device; 3, the bead numbered 3 on the optical positioning device; 4, the bead numbered 4 on the optical positioning device; 5, the bead numbered 5 on the optical positioning device; 6, the bead numbered 6 on the optical positioning device. DETAILED DESCRIPTION

[0066] Below, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described here.

[0067] It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.

[0068] Those skilled in the art will understand that the terms "first", "second", etc. in the embodiments of the present invention are only used to distinguish different steps, devices or modules, and do not represent any specific technical meanings, nor do they represent the necessary logical order between them. For example, steps S1 and S2 are not limited in order and can be processed in parallel.

[0069] It should also be understood that, in the embodiments of the present invention, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.

[0070] It should also be understood that any component, data or structure mentioned in the embodiments of the present invention can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.

[0071] In addition, the term "and / or" in the present invention is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects before and after are in an "or" relationship.

[0072] It should also be understood that the description of the various embodiments of the present invention focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.

[0073] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0074] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0075] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.

[0076] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0077] Embodiments of the present invention can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.

[0078] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.

[0079] Exemplary Methods

[0080] Figure 1A It is a schematic structural diagram of the optical positioning device with a ball according to the present invention. Figure 1B The figure is a schematic diagram showing the position of a ball of an optical positioning device with a ball of the present invention. Figure 1A-1BAs shown, before the patient undergoes surgical implantation, the optical positioning device is glued to the tooth with glue, that is, the patient wears the optical positioning device and then takes a CBCT tomographic image; after the implantation is completed, the patient wears the optical positioning device again to take a CBCT tomographic image. The optical positioning device is provided with a number of beads, such as beads 0 to 6. The beads are marking points on the optical positioning device and are used to calculate the transformation matrix between the coordinate system of the optical positioning device and the coordinate system of the CBCT tomographic image. The transformation matrix can be used to transform the physical space of the optical positioning device into the image space of the CBCT, so that a grid model can be used in the host computer to display the positional relationship between two objects and calculate the distance between them. During use, the optical positioning device is as follows Figure 2A In an ideal state, when the beads on the optical positioning device are not affected by glue, the beads on the optical positioning device in the CBCT tomographic image have clear contours, fewer artifacts, and less deformation, as shown in the figure. Figure 2C As shown; however, if there is more glue around the bead, the outline of the bead on the optical positioning device in the CBCT tomographic image will be severely deformed, and there will be many ray-like artifacts around it, such as Figure 2B shown.

[0081] Figure 3 FIG. 1 is a flow chart of a method for identifying a bead on an optical positioning device in a CBCT tomographic image provided by an exemplary embodiment of the present invention. Figure 3 As shown, the following steps are included:

[0082] Step S1: Acquire a CBCT tomographic image, wherein the CBCT tomographic image includes a plurality of images taken of the optical positioning device and arranged in a vertical direction; cut a three-dimensional image corresponding to the CBCT tomographic image to obtain a transverse view group, a coronal view group, and a sagittal view group (hereinafter referred to as view group or transverse group, coronal group, sagittal group) of the three-dimensional image; take the Cartesian coordinate system of the CBCT tomographic image as a reference coordinate system, cut the three-dimensional image along the Z-axis direction to obtain a transverse view group, wherein the transverse view group includes one or more transverse views, cut the three-dimensional image along the Y-axis direction to obtain a coronal view group, wherein the coronal view group includes one or more coronal views, and cut the three-dimensional image along the X-axis direction to obtain a sagittal view group, wherein the sagittal view group includes one or more sagittal views;

[0083] Step S2: performing a filtering operation on the non-blank area in each of the cross-sectional view group, the coronal view group, and the sagittal view group, that is, the area with the object outline, to obtain one or more center areas to be determined in each view;

[0084] Step S3, obtaining the center of each bead on the optical positioning device in the cross-sectional view; the to-be-determined center areas in different cross-sectional views corresponding to the center of the same bead constitute concentric circles, and obtaining the number of the to-be-determined center areas corresponding to each concentric circle {num11,…,num1 j ,…,num1 znum}; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area max1 among the corresponding to-be-determined circle center areas j , record the largest area to be determined center area max1 j The three-dimensional coordinates in the CBCT tomographic image; wherein, 1≤j≤znum, znum is the number of beads on the optical positioning device, num1 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the cross-sectional view group;

[0085] Step S4, obtaining the center of each bead on the optical positioning device in the coronal view; the to-be-determined center areas in different coronal views corresponding to the center of the same bead constitute concentric circles, and obtaining the number of the to-be-determined center areas corresponding to each concentric circle {num21,…,num2 j ,…,num2 znum}; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area among the corresponding to-be-determined circle center areas max2 j , record the largest area to be determined center area max2 j The three-dimensional coordinates in the CBCT tomographic image; wherein num2 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the coronal view group;

[0086] Step S5, obtaining the center of each bead on the optical positioning device in the sagittal plane view; the to-be-determined center areas in different sagittal plane views corresponding to the center of the same bead constitute concentric circles, and obtaining the number of the to-be-determined center areas corresponding to each concentric circle {num31, ..., num3 j ,…,num3 znum}; For each concentric circle, obtain the largest area of ​​the corresponding to-be-determined circle center area max3 j , record the largest area to be determined center area max3 j The three-dimensional coordinates in the CBCT tomographic image; wherein num3 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the sagittal view group;

[0087] Step S6, {num11,…,num1j ,…,num1 znum}、{num21,…,num2 j ,…,num2 znum}、{num31,…,num3 j ,…,num3 znum} Sort all the values ​​in it from largest to smallest, and get the first znum+1 values ​​in the sorted result;

[0088] For each value val in the first znum+1 values node , get val node The corresponding coordinate x of the largest area to be determined is on the X-axis node , calculate the average

[0089] The dimension K of the CBCT tomographic image in the X-axis direction is obtained, where the value of K is equal to the number of the sagittal views in the sagittal view group; based on the average value Average and the dimension K, the center area to be determined with the largest area corresponding to the first znum+1 values ​​is filtered (the conditions are described below); based on the center area to be determined retained after filtering, the three-dimensional coordinates of each bead on the optical positioning device are determined.

[0090] Optionally, in this embodiment, the three-dimensional coordinates are index coordinate values. The index coordinate value of the three-dimensional image describes the sequence number of the current voxel (pixel) relative to the origin pixel of the entire view. For example, (1,2,3) means that the current pixel is 1 pixel away from the origin in the X-axis direction, 2 pixels away from the origin in the Y-axis direction, and 3 pixels away from the origin in the Z-axis direction.

[0091] Based on the center coordinates of the concentric circles in the cross-sectional view group, the center coordinates of the concentric circles in the coronal view group, the center coordinates of the concentric circles in the sagittal view group, the number num1 of concentric circles in the cross-sectional view group, the number num2 of concentric circles in the coronal view group, and the number num3 of concentric circles in the sagittal view group, the three-dimensional coordinates of each bead on the optical positioning device are acquired.

[0092] In the present invention, the user wears an optical positioning device to shoot a CBCT tomographic image, and the pixel interval of the CBCT tomographic image is required to be less than 0.25mm. The CBCT tomographic image includes a plurality of images taken by the optical positioning device and arranged in a vertical direction. The plurality of images are arranged in a vertical direction according to the index values ​​formed in the time sequence of shooting. Since the bead is three-dimensional, the Cartesian coordinate system of the CBCT tomographic image is used as the reference coordinate system (the concept of coordinate system is https: / / www.slicer.org / wiki / Coordinate_systems), and the three-dimensional image is cut along the Z axis direction to obtain the cross-sectional view, the three-dimensional image is cut along the Y axis direction to obtain the coronal view, and the three-dimensional image is cut along the X axis direction to obtain the sagittal view. For the same bead, a plane section view in the XY axis direction, the YZ axis direction, and the XZ axis direction is formed. The circles in the same view group form concentric circles. By obtaining the center positions of the concentric circles in the XY axis direction, the YZ axis direction, and the XZ axis direction, the center of the three-dimensional bead in the three-dimensional space can be combined. The position of the center of each ball on the optical positioning device in the CBCT tomographic image space is determined by the position of the center of the circle, thereby realizing the identification of the ball on the optical positioning device.

[0093] Optionally, the index coordinates can be determined using a sequence group of tomographic planes formed after the CBCT tomographic images are captured. Taking the cross-sectional sequence group formed after the capture as an example, the name of each stored image file is the index value corresponding to it, which is used to describe the position coordinate value in another dimension (Z-axis direction).

[0094] The step S1 is to obtain a CBCT tomographic image, wherein the CBCT tomographic image includes a plurality of images taken of the optical positioning device and arranged in a vertical direction; cut a three-dimensional image corresponding to the CBCT tomographic image to obtain a cross-sectional view group, a coronal view group, and a sagittal view group of the three-dimensional image; using the Cartesian coordinate system of the CBCT tomographic image as a reference coordinate system, cut the three-dimensional image along the Z-axis direction to obtain a cross-sectional view group, wherein the cross-sectional view group includes one or more cross-sectional views, cut the three-dimensional image along the Y-axis direction to obtain a coronal view group, wherein the coronal view group includes one or more coronal views, and cut the three-dimensional image along the X-axis direction to obtain a sagittal view group, wherein the sagittal view group includes one or more sagittal views.

[0095] In this embodiment, the acquired CBCT tomographic images include multiple images numbered from 0 to N. The image numbers are automatically generated when the CBCT is taken. The numbers represent the position of the image in the Z-axis direction in the space of the CBCT tomographic images. The plane where each image is located is a plane parallel to the X-axis and the Y-axis. Therefore, the CBCT tomographic image group corresponds to a three-dimensional image. The CBCT tomographic images are de-artifacted. The artifacts are ring-shaped or ray-shaped stripes around the metal beads. The de-artifacting method includes adjusting the layer thickness parameters of the scanning device or changing the filtering algorithm. Figure 4A-4D As shown, the three-dimensional image is cut, and the Cartesian coordinate system of the CBCT tomographic image is used as the coordinate system. The three-dimensional image is cut along the Z-axis direction to obtain the cross-sectional view group, the three-dimensional image is cut along the Y-axis direction to obtain the coronal view group, and the three-dimensional image is cut along the X-axis direction to obtain the sagittal view group.

[0096] The multiple image sequences included in the CBCT tomographic image are usually cross-sectional sequences, and each image is square. Therefore, assuming that the size of each image is D×D, the corresponding size of the three-dimensional image formed by the combination of all images is D×D×N. After slicing the three-dimensional image, the cross-sectional view group includes N cross-sectional views, and the size of each cross-sectional view is D×D; the coronal view group includes D coronal views, and the size of each coronal view is D×N; the sagittal view group includes D sagittal views, and the size of each sagittal view is D×N.

[0097] CBCT tomographic images are usually in DICOM format. The grayscale value (also called CT value or HU value) of the pixels of DICOM format images is usually [-1024, 3071]. This range exceeds the limit of human eye recognition. The present invention converts the three-dimensional CBCT tomographic image into a cross-sectional view group, a coronal view group, and a sagittal view group in the range of [0-255]. The views in the cross-sectional view group, the coronal view group, and the sagittal view group are all PNG images. In other words, the corresponding window width and window position are set to convert the three-dimensional CBCT tomographic image into a PNG format image for storage. This embodiment adopts the method of setting the window position X and the window width Y, that is, the grayscale value in the range of [(X-Y) / 2, (X+Y) / 2] is linearly mapped to the range of [0-255], and the grayscale value of the pixel below (X-Y) / 2 is set to 0, and the grayscale value of the pixel above (X+Y) / 2 is set to 255. In the process of CBCT tomographic imaging, the higher the density or the higher the radiopacity of the object, the higher the CT value in the CBCT tomographic image, wherein the radiopacity is the performance of preventing X-rays from penetrating. By setting the window width and window position, only the area formed by the beads and glue can be retained in the converted PNG image.

[0098] The round bead in the CBCT tomographic image is approximately spherical. After the three-dimensional CBCT tomographic image is converted into a PNG image in the form of a two-dimensional slice, the round bead is displayed in the PNG image in an approximately circular shape, that is, in each view of the cross-sectional view group, the coronal view group, and the sagittal view group, the round bead is displayed in an approximately circular shape. Affected by the mutual blocking between the adhesive with radiopaque properties and the round bead, the round bead in the CBCT tomographic image will change from a spherical shape to other irregular shapes, such as an olive shape. In the corresponding two-dimensional slice PNG image, the circle in the ideal state also becomes an irregular shape such as an ellipse, but the overall area and contour size do not change much, and the fluctuation is usually within 50%. Therefore, in this embodiment, various highlighted areas in each view of the cross-sectional view group, the coronal view group, and the sagittal view group are filtered and counted according to the area and contour size, and the center of the round bead on the optical positioning device is screened and calculated.

[0099] Due to the presence of CBCT artifacts and adhesives, there will be more noise in the image, and it is necessary to use image processing algorithms to perform certain smoothing and denoising operations, and perform image preprocessing on each view in the cross-sectional view group, coronal view group, and sagittal view group.

[0100] The artifact removal is performed by the CBCT device. It is difficult to completely remove the artifact in practice. Due to the different physical properties and software algorithm performances of different CBCT devices, the effect of removing the artifact may vary greatly, and there may be cases where the artifact is only weakened.

[0101] Due to the presence of artifacts and adhesives, there will be a lot of noise in the CBCT tomographic image. For devices with poor artifact removal effects, the artifact removal operation can be performed again. For the noise in the CBCT tomographic image, it is necessary to use an image processing algorithm to perform certain smoothing and denoising operations. First, the following processing is performed on each view in the cross-sectional view group, coronal view group, and sagittal view group: first, the view is gray-scaled, that is, the view is converted from an RBG image to a grayscale image; then, the converted grayscale image is binarized to convert the grayscale image into a binary image, that is, a threshold threshold is set, and the grayscale value of pixels greater than the threshold threshold is set to 255, and the grayscale value of pixels less than the threshold threshold is set to 0; then, an opening operation of first corrosion and then expansion is used to eliminate small objects in the binary image, separate objects in thin places, and smooth the boundaries of larger objects. The processed view is as follows Figure 5A-Figure 5B shown.

[0102] Step S2, performing a filtering operation on the non-blank area in each view of the cross-sectional view group, the coronal view group, and the sagittal view group, that is, the area with the object outline, to obtain one or more center areas to be determined in each view.

[0103] Due to the mutual blocking between the adhesive and the beads, the circles formed by the beads in the views of the cross-sectional view group, the coronal view group, and the sagittal view group may change into various irregular shapes. Therefore, in this embodiment, the center of the bounding box of the area formed by the beads is used instead of the center of the circle.

[0104] Because the view group includes not only the area formed by the beads but also the area formed by the adhesive, it is necessary to filter and select the non-blank area according to the size of the beads. In this embodiment, the radius R of the beads is obtained in advance; in the view, the radius R of the beads Where Spacing is the voxel spacing of the CBCT tomographic image, then in the view, the area of ​​the bead is CircleArea = πR' 2 , the circumference of the bead is ArcLength=2πR', set the threshold range of the bead area in the view to [0.5CircleArea, 1.5CircleArea], set the threshold range of the circumference of the bead in the view to [0.5ArcLength, 1.5ArcLength]. Regarding all non-blank areas in each view in the view group, for each non-blank area in all non-blank areas in each view, obtain the circumference and area of ​​the non-blank area. If the area of ​​the non-blank area is not within the threshold range of the bead area in the view, or the circumference of the non-blank area is not within the threshold range of the bead circumference in the view, then the non-blank area is a non-circular area and fails to pass the filtering; the non-blank area that passes the filtering is a quasi-circular area, and the quasi-circular area is used as the center area to be determined. The filtered view is as follows Figure 6A-6B shown.

[0105] For example, if the optical positioning device has a plurality of beads, the beads can be marked in advance, for example, by marking a serial number. The position of the beads on the optical positioning device is obtained, and the distance information between each bead on the optical positioning device and other beads is recorded, such as Figure 7 By recording the distance information between each bead and other beads, the specific number of the bead can be determined.

[0106] For a spherical object such as a bead, in the CBCT tomographic image, theoretically, the center of the circle of each slice of the bead will be the same. Taking the cross-sectional view as an example, based on each cross-sectional view in the cross-sectional group, the number of concentric circles formed by the bead in the Z-axis direction can be determined. Without considering the recognition error, the coordinates of the centers of the circles formed by the same bead in different sections are the same on the XY axis, and these centers only differ in the coordinates on the Z axis. For example, there are 7 beads on the optical positioning device, and there are 20 cross-sectional views in the cross-sectional group. In each cross-sectional view, assuming that the physical diameter of the bead (the diameter of the ball) is 3 mm, and the interval between the sections of the CBCT tomographic image in the Z-axis direction is 0.3 mm, then the same bead will theoretically appear in 3 / 0.3=10 cross-sectional views, and the centers of the circles in these views are the same, such as Figure 7 Similarly, based on each coronal view in the coronal group, the number of concentric circles formed by the beads in the Y-axis direction can be determined; based on each sagittal view in the sagittal group, the number of concentric circles formed by the beads in the X-axis direction can be determined.

[0107] Step S3, obtaining the center of each bead on the optical positioning device in the cross-sectional view; the to-be-determined center areas in different cross-sectional views corresponding to the center of the same bead constitute concentric circles, and obtaining the number of the to-be-determined center areas corresponding to each concentric circle {num11,…,num1 j ,…,num1 znum}; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area max1 among the corresponding to-be-determined circle center areas j , record the largest area to be determined center area max1 j The three-dimensional coordinates in the CBCT tomographic image; wherein, 1≤j≤znum, znum is the number of beads on the optical positioning device, num1 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the cross-sectional view group.

[0108] In this embodiment, a bounding box of the to-be-determined center area of ​​each cross-sectional view is determined, and the center coordinate values ​​of the bounding box are used as the center coordinates.

[0109] Get the number of beads in the optical positioning device and the zh of each bead j The coordinates (X j ,Y j );For the center area R to be determined ni , determine its center O ni The coordinates are (X ni ,Yni ), if the following conditions are met:

[0110] |X ni -X j |<R'

[0111] |Y ni -Y j |<R'

[0112] Then the center area R to be determined ni With beads j is a subordinate relationship, that is, the to-be-determined center area is formed by the corresponding ball, the to-be-determined center area is a two-dimensional section, the ball is a three-dimensional spherical surface, and the to-be-determined center area R ni With beads j It has concentric axes (i.e., the center of the circle and the center of the sphere are on the same axis). The center areas to be determined that have a subordinate relationship with the same bead constitute concentric circles; wherein, 1≤j≤znum, znum is the number of beads; 1≤n≤N1, N1 is the number of cross sections in the cross section group, 1≤i≤numn, numn is the number of center areas to be determined in the nth cross section view. The center areas to be determined in different cross section views corresponding to the center of the same bead constitute concentric circles, and the number of center areas to be determined corresponding to each concentric circle is obtained.

[0113] {num11,…,num1 j ,…,num1 znum In this embodiment, the number of the to-be-determined center areas corresponding to each concentric circle is obtained and counted {num11, ..., num1 j ,…,num1 znum The purpose of the method is to filter based on the size of the statistical value, and select several coordinate values ​​that meet the conditions and have the largest statistical values ​​as the center coordinates of the ball in the CBCT tomographic image space.

[0114] The purpose of performing recognition from multiple views in this embodiment is to increase the robustness of the algorithm and reduce the probability of misrecognition, mainly to reduce the probability of misrecognizing glue as beads.

[0115] Furthermore, in this embodiment, a matrix is ​​constructed to record the number of the center areas to be determined corresponding to each concentric circle. Fig. 8AAs shown, the matrix name is set to NX5. The NX5 matrix has five columns, namely X, Y, Z, Area, and UpdateTime, which are used to represent the index coordinate value of the bead in the X-axis direction, the index coordinate value in the Y-axis direction, the index coordinate value in the Z-axis direction, the largest non-blank area of ​​the bead that meets the filtering conditions in each view group, and the number of non-blank areas belonging to the bead. For example, for a certain center area R to be determined in the nth cross-sectional view ni , after judgment, determine that it corresponds to the center of a certain ball, and set R ni The area of ​​the circle is compared with the area of ​​the largest circle center area to be determined corresponding to the circle center recorded in the NX5 matrix. If R ni If the area of ​​the largest circle center region to be determined is greater than that of the largest circle center region to be determined, the X value in the row corresponding to the circle center in the NX5 matrix is ​​assigned to R ni The horizontal coordinate X of the center of the circle ni , the Y value is assigned to R ni The ordinate Y of the center of the circle ni , the Z value is assigned to R ni The number of the cross-sectional view is n, and Area is assigned to R ni Area The value of the Update Time column is incremented by 1; otherwise, in the row corresponding to the center of the circle, the values ​​of the X, Y, Z, and Area columns remain unchanged, and the value of the Update Time column is incremented by 1. For another example, in the nth cross-sectional view, a circle center area R ni , after judgment, it is determined that it corresponds to the center of a certain bead, but the data corresponding to the center of the circle has not yet been recorded in the NX5 matrix, then a new row is added to the NX5 matrix to record the relevant data of the center of the circle, and the value of this row is [X ni , Y ni , n, 1].

[0116] Step S4, obtaining the center of each bead on the optical positioning device in the coronal view; the to-be-determined center areas in different coronal views corresponding to the center of the same bead constitute concentric circles, and obtaining the number of the to-be-determined center areas corresponding to each concentric circle {num21,…,num2 j ,…,num2 znum}; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area among the corresponding to-be-determined circle center areas max2 j , record the largest area to be determined center area max2 j The three-dimensional coordinates in the CBCT tomographic image; wherein num2 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the coronal view group.

[0117] In this embodiment, the bounding box of the to-be-determined center area of ​​each coronal view is determined, the center coordinate value of the bounding box is obtained, and the center coordinate value is converted into coordinates in the Cartesian coordinate system of the CBCT tomographic image through coordinate transformation, and the converted coordinates are used as the center coordinates.

[0118] Get the number of beads in the optical positioning device and the zh of each bead j The coordinates (Y j ,Z j );For the center area R to be determined pi2 , determine its center O pi2 The coordinates are (Y pi2 ,Z pi2 ), if the following conditions are met:

[0119] |Y pi2 -Y j |<R'

[0120] |Z pi2 -Z j |<R'

[0121] Then the center area R to be determined pi2 With beads j is a subordinate relationship, that is, the to-be-determined center area is formed by the corresponding ball, the to-be-determined center area is a two-dimensional section, the ball is a three-dimensional spherical surface, and the to-be-determined center area R pi2 With beads j It has concentric axes (i.e., the center of the circle and the center of the sphere are on the same axis). The center areas to be determined that have a subordinate relationship with the same bead constitute concentric circles; wherein, 1≤j≤znum, znum is the number of beads; 1≤p≤N2, N2 is the number of coronal planes in the coronal group, 1≤i2≤numn2, numn2 is the number of center areas to be determined in the pth coronal plane view. The center areas to be determined in different coronal plane views corresponding to the center of the same bead constitute concentric circles, and the number of center areas to be determined corresponding to each concentric circle is obtained {num21,…,num2 j ,…,num2 znum}.

[0122] Furthermore, in this embodiment, a matrix is ​​constructed to record the number of the to-be-determined center regions corresponding to each concentric circle. pi2 , after judgment, determine that it corresponds to the center of a certain ball, and set R pi2 The area of ​​the circle is compared with the area of ​​the largest circle center area to be determined corresponding to the circle center recorded in the NX5 matrix. If R pi2If the area of ​​the largest circle center region to be determined is greater than that of the largest circle center region to be determined, the X value in the row corresponding to the circle center in the NX5 matrix is ​​assigned to R pi2 The coronal view number is p, and the Y value is assigned to R pi2 The ordinate Y of the center of the circle pi2 , the Z value is assigned to R pi2 The coordinates of the center of the circle are Z pi2 , Area is assigned to R pi2 Area The value of the Update Time column is incremented by 1; otherwise, in the row corresponding to the center of the circle, the values ​​of the X, Y, Z, and Area columns remain unchanged, and the value of the Update Time column is incremented by 1. For another example, in the pth coronal view, a circle center area R pi2 , after judgment, it is determined that it corresponds to the center of a certain bead, but the data corresponding to the center of the circle has not yet been recorded in the NX5 matrix, then a new row is added to the NX5 matrix to record the relevant data of the center of the circle. The value of this row is [p, Y pi2 , Z pi2 , 1].

[0123] Step S5, obtaining the center of each bead on the optical positioning device in the sagittal plane view; the to-be-determined center areas in different sagittal plane views corresponding to the center of the same bead constitute concentric circles, and obtaining the number of the to-be-determined center areas corresponding to each concentric circle {num31, ..., num3 j ,…,num3 znum}; For each concentric circle, obtain the largest area of ​​the corresponding to-be-determined circle center area max3 j , record the largest area to be determined center area max3 j The three-dimensional coordinates in the CBCT tomographic image; wherein num3 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the sagittal view group.

[0124] In this embodiment, the bounding box of the center area to be determined in each sagittal view is determined, the center coordinate value of the bounding box is obtained, and the center coordinate value is converted into coordinates in the Cartesian coordinate system of the CBCT tomographic image through coordinate transformation, and the converted coordinates are used as the center coordinates.

[0125] Get the number of beads in the optical positioning device and the zh of each bead j The coordinates (X j ,Z j );For the center area R to be determined qi3 , determine its center O qi3 The coordinates are (Xqi3 ,Z qi3 ), if the following conditions are met:

[0126] |X qi3 -X j |<R'

[0127] |Z qi3 -Z j |<R'

[0128] Then the center area R to be determined qi3 With beads j is a subordinate relationship, that is, the center area to be determined is formed by the corresponding ball, the center area to be determined is a two-dimensional section, the ball is a three-dimensional spherical surface, and the center area to be determined R qi3 With beads j It has concentric axes (i.e., the center of the circle and the center of the sphere are on the same axis). The center areas to be determined that have a subordinate relationship with the same bead constitute concentric circles; wherein, 1≤j≤znum, znum is the number of beads; 1≤q≤N3, N3 is the number of sagittal planes in the sagittal group, 1≤i3≤numn3, numn3 is the number of center areas to be determined in the qth coronal view. The center areas to be determined in different coronal views corresponding to the center of the same bead constitute concentric circles, and the number of center areas to be determined corresponding to each concentric circle is obtained {num31,…,num3 j ,…,num3 znum}.

[0129] Furthermore, in this embodiment, a matrix is ​​constructed to record the number of the to-be-determined center regions corresponding to each concentric circle. qi3 , after judgment, determine that it corresponds to the center of a certain ball, and set R qi3 The area of ​​the circle is compared with the area of ​​the largest circle center area to be determined corresponding to the circle center recorded in the NX5 matrix. If R qi3 If the area of ​​the largest circle center region to be determined is greater than that of the largest circle center region to be determined, the X value in the row corresponding to the circle center in the NX5 matrix is ​​assigned to R qi3 The horizontal coordinate X of the center of the circle qi3 , the Y value is assigned to the number of the sagittal view q, and the Z value is assigned to R qi3 The coordinate Z qi3 , Area is assigned to R qi3 Area The value of the Update Time column is incremented by 1; otherwise, in the row corresponding to the center of the circle, the values ​​of the X, Y, Z, and Area columns remain unchanged, and the value of the Update Time column is incremented by 1. For another example, in the qth sagittal view, a circle center area Rqi3 , after judgment, it is determined that it corresponds to the center of a certain bead, but the data corresponding to the center of the circle has not yet been recorded in the NX5 matrix, then a new row is added to the NX5 matrix to record the relevant data of the center of the circle, and the value of this row is [X qi3 ,q,Z qi3 , 1].

[0130] Step S6, {num11,…,num1 j ,…,num1 znum}、{num21,…,num2 j ,…,num2 znum}、{num31,…,num3 j ,…,num3 znum} Sort all the values ​​in it from largest to smallest, and get the first znum+1 values ​​in the sorted result;

[0131] For each value val in the first znum+1 values node , get val node The corresponding coordinate x of the largest area to be determined is on the X-axis node , calculate the average

[0132] The dimension K of the CBCT tomographic image in the X-axis direction is obtained, where the value of K is equal to the number of the sagittal views in the sagittal view group; based on the average value Average and the dimension K, the to-be-determined center area with the largest area corresponding to the first znum+1 values ​​is filtered; based on the to-be-determined center area retained after filtering, the three-dimensional coordinates of each bead on the optical positioning device are determined.

[0133] In robot-assisted oral implant surgery, the optical positioning device is usually installed on one side of the patient, such as the left side, and the implant is implanted on the other side, such as the right side. Because the material of the implant is mostly titanium, its imaging brightness in CBCT is also high, and the bottom is also approximately spherical. Therefore, when statistics are taken, the data brought by the bottom hemisphere of the implant is often introduced. For example, in the NX5 matrix, there are often rows formed by the bottom hemisphere of the implant, and its update time UpdateTime is relatively close to a sphere. At this time, the X-axis coordinates need to be used to filter the implant.

[0134] {num11,…,num1 j ,…,num1 znum}、{num21,…,num2 j ,…,num2 znum}、 {num31,…,num3 j ,…,num3 znum} in descending order, get the first znum+1 values, and for each value val in the first znum+1 values node , get val node The corresponding coordinate x of the largest area to be determined is on the X-axis node , calculate the average For example, the NX5 detection matrix is ​​sorted according to the values ​​of the column where Update Time is located. If the number of beads on the optical positioning device to be detected is N, the values ​​of the X column of the first N+1 rows are summed and averaged to obtain the average value Average.

[0135] The dimension K of the CBCT tomographic image in the X-axis direction is obtained, and the value of K is equal to the number of the sagittal views in the sagittal view group. Based on the average value Average and the dimension K, the center area to be determined with the largest area corresponding to the first znum+1 values ​​is filtered. For example, the size of the dimension in the X-axis direction of the CBCT tomographic image is K. If Average is greater than K / 2, the center area to be determined with the largest area corresponding to the first znum+1 values ​​and the X-axis coordinate value corresponding to the center area to be determined is less than K / 2 is filtered out; if Average is less than or equal to K / 2, the center area to be determined with the largest area corresponding to the first znum+1 values ​​and the X-axis coordinate value corresponding to the center area to be determined is greater than or equal to K / 2 is filtered out. For example, if Average is greater than K / 2, the rows in the NX5 matrix with X-axis values ​​less than K / 2 are deleted; if Average is less than or equal to K / 2, the rows in the NX5 matrix with X-axis values ​​greater than or equal to K / 2 are deleted.

[0136] The method of determining the three-dimensional coordinates of each ball on the optical positioning device based on the filtered center area to be determined comprises:

[0137] Determine the three-dimensional coordinates of each bead on the optical positioning device, wherein the three-dimensional coordinates are the X-axis index coordinate, the Y-axis index coordinate, and the Z-axis index coordinate, and combine the X-axis index coordinate, the Y-axis index coordinate, and the Z-axis index coordinate into the coordinate value of the bead in the three-dimensional image space, and use the (X, Y, Z) coordinates as the three-dimensional index coordinates of the bead.

[0138] For example, the combination of the X, Y, and Z column values ​​of the first znum rows in the NX5 matrix that pass the filter is the index coordinate (X, Y, Z) of the center of the ball on the optical positioning device. Multiply the index coordinate by the pixel spacing Spacing, and add the offset (Tx, Ty, Tz) of the CBCT tomographic image relative to the origin in the three-dimensional space, and then the Cartesian coordinate value of the center of the ball in the middle of the three-dimensional image can be obtained, such as (X*Spacing+Tx, Y*Spacing+Ty, Z*Spacing+Tz). In this embodiment, the non-blank area is filtered based on the area and contour length of the circle, and the non-blank area that meets the filtering conditions identified for the same ball in the three view group directions usually adds up to a considerable value, such as the attached Figure 8B 29, etc. It is a small probability event that other highlight areas formed by non-round beads (mainly various irregular shapes formed by glue) exceed the round beads in statistics, so all the round beads can be retrieved and located.

[0139] like Figure 9-10 As shown, in another embodiment of the present invention, the method for detecting beads in CBCT tomographic images of the present invention includes preprocessing each view in the view group, then counting the concentric circles in the cross-sectional group, counting the concentric circles in the sagittal group, and counting the concentric circles in the coronal group, filtering and sorting based on the statistical results, and then screening the statistical results to determine the coordinates of the center of the beads. In another embodiment of the present invention, the method for detecting CBCT tomographic images of the present invention includes shooting CBCT tomographic images, converting the CBCT tomographic images into two-dimensional PNG images; detecting beads, sorting the detected beads, and determining the serial numbers of the beads; and evaluating the detection errors.

[0140] Furthermore, after step S6, step S7 is also included.

[0141] Step S7: Based on the three-dimensional coordinates of each bead on the optical positioning device, determine the distance between each bead and other beads on the optical positioning device, and based on the pre-recorded distance information between each bead on the optical positioning device, determine the serial number of each bead.

[0142] In this embodiment, Figure 7 As shown, the beads are marked with serial numbers in advance, and after the three-dimensional coordinates of each bead on the optical positioning device are obtained in the CBCT tomographic image, the serial number of each bead is determined based on the pre-recorded distance information between each bead on the optical positioning device.

[0143] For example, the ICP algorithm includes a sub-algorithm for obtaining a point-to-point coordinate transformation matrix. For accuracy, the identified beads need to be sorted according to the design drawing of the optical positioning device to identify the specific serial numbers of the beads, such as 0.

[0144] Pre-calculate the distance list from each bead to the other beads in the design drawing or the actual optical positioning, then calculate the distance list from each bead to the other beads based on the three-dimensional coordinates of each bead on the optical positioning device, set a certain distance error threshold σ, and the serial number of each bead can be determined. For example, the distance from the bead with serial number 0 in the design drawing to the other 6 beads is [A, B, C, D, E, F], and the distance list from a detected bead or a bead on the actual optical positioning device to the other beads is [A1, B1, C1, D1, E1, F1]. If A1∈(A-σ, A+σ), then A1 is considered to be equal to A. If the 6 distances in the list are equal, then the serial number of the current bead is considered to be 0. The calculation of the serial numbers of the other beads is similar.

[0145] Furthermore, after step S7, step S8 is also included.

[0146] Step S8: Determine the detection error based on the pre-recorded distance information between the beads on the optical positioning device and the detected distance information between the beads on the optical positioning device.

[0147] There will be a certain error in the center of the ball detected automatically. The detection error is determined by calculating the difference between the distance information of the detected ball and the distance between each ball and the other balls in the design drawing or the actual optical positioning. For example, the distance list from the ball with sequence number 0 to the other balls in the design drawing or the actual optical positioning is [A, B, C, D, E, F], and the distance from the ball with sequence number 0 to the other balls detected by calculation is [A1, B1, C1, D1, E1, F1]. Then the distance error of the ball with sequence number 0 detected by the algorithm is

[0148]

[0149] That is, the average value of the absolute value of the distance difference between the current bead (bead No. 0) and the remaining beads. Calculate the distance error ε of all beads with serial numbers, take the average value of all distance errors ε as the mean error, and take the maximum value of all distance errors ε as the maximum error.

[0150] Another embodiment of the present invention provides a method for identifying a round bead on an optical positioning device in a CBCT tomographic image. In this embodiment, the material of the round bead is iron.

[0151] First, a CBCT tomographic image is taken.

[0152] The user takes the positioning guide to shoot CBCT tomographic images. The pixel interval and layer thickness of the CBCT tomographic images are required to be less than 0.25mm, and the captured CBCT tomographic images need to be de-artifacted.

[0153] Then convert the CBCT tomographic image into a PNG image.

[0154] The CBCT tomographic image in this example is composed of a total of 352 slice sequences, and the size of each slice image is 616×616. The size of the combined three-dimensional image is 616×616×352. After the three-dimensional image is re-sliced, the number of slices in the three views is: 352 cross-sectional images, 616 coronal images (image size is 616×352), and 616 sagittal images (image size is 616×352).

[0155] Set the window level to 2700 and the window width to 200, and linearly map the grayscale values ​​in the range of [(2700–200) / 2, (2700+200) / 2] to the range of [0-255]. The grayscale values ​​of pixels below (2700–200) / 2 are set to 0, and the grayscale values ​​of pixels above (2700+200) / 2 are set to 255. In the process of CBCT tomographic imaging, the higher the density of the object or the higher the radiopacity (the performance of preventing X-ray penetration), the higher the CT value in the CBCT tomographic image. By setting the window width and window level, only the areas formed by beads and glue can be retained in the PNG image.

[0156] Then test the beads:

[0157] ① Image preprocessing. First, grayscale the PNG image and convert the RBG image into a grayscale image; then perform binarization to convert the grayscale image into a binary image, set the threshold to 127, set the grayscale value of pixels greater than the threshold to 255, and set the grayscale value of pixels less than the threshold to 0; finally, use the opening operation (erode first and then expand) to eliminate small objects, separate objects in thin places, and smooth the boundaries of larger objects. The convolution kernel of the opening operation is 5×5.

[0158] ②Circle statistics of cross section. In this example, the physical radius of the bead is 1.25mm, and the pixel interval of the CBCT tomographic image is 0.226mm. The radius of the circle formed in the PNG image is R = 1.25mm / 0.226mm = 5.53, the area CircleArea is equal to 96.10, and the circumference ArcLength is equal to 34.75. Filter the area in the PNG image according to the area and circumference. The area that is not in the range of [0.5*96.10, 1.5*96.10] and the circumference that is not in the range of [0.5*34.75, 1.5*34.75] needs to be filtered out.

[0159] Use attached Fig. 8A The NX5 matrix shown counts the number of concentric circles. The cross-sectional circle statistics mainly count the number of circles with the same center (X, Y). Assuming that the coordinates of the center detected in the Nth image are (Xn, Yn), if there are centers in the matrix list that satisfy the following relationship, the two are considered concentric:

[0160] |Xn-X|<R

[0161] |Yn-Y|<R

[0162] In the case of concentricity, the column number where Update Time is located is incremented. If the currently detected area is larger than the area in the Area column of the corresponding row in the matrix, the value of Area in the matrix is ​​updated to the area of ​​the current detected area and the value in the corresponding row Z column is updated using the image sequence value N. In the case of non-concentricity, a new row is added to the matrix with the value [Xn, Yn, N, Area_N, 1], and Area_N is the area of ​​the current detected area.

[0163] ③ The circular statistics of the sagittal plane follow the same process as above and will not be repeated here.

[0164] ④ The circular statistics of the coronal plane follow the same process as above and will not be repeated here.

[0165] ⑤ Filter and sort. Fig. 8A The detection matrix in is sorted by the value of the column where Update Time is located. If the number of beads on the optical positioning device to be detected is 7, the values ​​of the X column of the first 8 rows are summed and averaged to obtain the average value Average = 397.87. Because the average value 397.87 is greater than 308, the rows in the detection matrix with values ​​of the X column less than 308 need to be deleted.

[0166] Multiply the exponential coordinate by the pixel spacing Spacing, and add the offset (0,0,0) of the CBCT tomographic image relative to the origin in the three-dimensional space, and then the Cartesian coordinate value of the center of the ball in the middle of the three-dimensional image can be obtained, such as (450*0.226+0, 273*0.226+0, 172*0.226+0).

[0167] Sort of beads:

[0168] For example, the distance from the bead with serial number 0 in the design drawing or the actual optical positioning to the other six beads is [11.705, 20.056, 25.288, 29.487, 16.432, 14.509], and the distance list from the third bead to the remaining beads is [11.90, 20.086, 25.488, 29.787, 16.632, 14.809]. The distances are equal within the error threshold σ=0.3. Therefore, it is determined that the third bead corresponds to the bead at position 0 in the design drawing, and its serial number is 0.

[0169] Evaluation of detection error:

[0170] The error formula is used to calculate that the mean error of the bead with serial number 0 is 0.25mm, so the recognition error of the bead with serial number 0 in the automatic detection algorithm is 0.25mm. The recognition errors of all beads are [0.34, 0.19, 0.32, 0.55, 0.21, 0.31, 0.22], so the mean error detected is 0.31mm and the maximum error is 0.55mm.

[0171] Exemplary Devices

[0172] Fig.11 FIG. 1 is a schematic diagram of a structure of a device for identifying a bead on an optical positioning device in a CBCT tomographic image provided by an exemplary embodiment of the present invention. Fig.11 As shown, this embodiment includes:

[0173] A cutting module: configured to obtain a CBCT tomographic image, wherein the CBCT tomographic image includes a plurality of images taken of the optical positioning device and arranged in a vertical direction; cut a three-dimensional image corresponding to the CBCT tomographic image to obtain a cross-sectional view group, a coronal view group, and a sagittal view group of the three-dimensional image; using the Cartesian coordinate system of the CBCT tomographic image as a reference coordinate system, cut the three-dimensional image along the Z-axis direction to obtain a cross-sectional view group, wherein the cross-sectional view group includes one or more cross-sectional views, cut the three-dimensional image along the Y-axis direction to obtain a coronal view group, wherein the coronal view group includes one or more coronal views, and cut the three-dimensional image along the X-axis direction to obtain a sagittal view group, wherein the sagittal view group includes one or more sagittal views;

[0174] The center region to be determined module is configured to perform a filtering operation on the non-blank area, that is, the area with the object outline, in each view of the cross-sectional view group, the coronal view group, and the sagittal view group to obtain one or more center regions to be determined in each view;

[0175] Cross-section processing module: configured to obtain the center of each bead on the optical positioning device in the cross-section view; the to-be-determined center area in different cross-section views corresponding to the center of the same bead constitutes concentric circles, and obtains the number of the to-be-determined center area corresponding to each concentric circle {num11,…,num1 j ,…,num1 znum}; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area max1 among the corresponding to-be-determined circle center areas j , record the largest area to be determined center area max1 j The three-dimensional coordinates in the CBCT tomographic image; wherein, 1≤j≤znum, znum is the number of beads on the optical positioning device, num1 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the cross-sectional view group;

[0176] Coronal plane processing module: configured to obtain the center of each bead on the optical positioning device in the coronal plane view; the to-be-determined center area corresponding to the center of the same bead in different coronal plane views constitutes concentric circles, and obtains the number of the to-be-determined center area corresponding to each concentric circle {num21,…,num2 j ,…,num2 znum}; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area among the corresponding to-be-determined circle center areas max2 j , record the largest area to be determined center area max2 j The three-dimensional coordinates in the CBCT tomographic image; wherein num2 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the coronal view group;

[0177] The sagittal plane processing module is configured to obtain the center of each bead on the optical positioning device in the sagittal plane view; the to-be-determined center areas in different sagittal plane views corresponding to the center of the same bead form concentric circles, and obtain the number of the to-be-determined center areas corresponding to each concentric circle {num31,…,num3 j ,…,num3 znum}; For each concentric circle, obtain the largest area of ​​the corresponding to-be-determined circle center area max3 j , record the largest area to be determined center area max3 j The three-dimensional coordinates in the CBCT tomographic image; wherein num3 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the sagittal view group;

[0178] Bead determination module: configured to convert {num11,…, num1 j ,…,num1 znum}、 {num21,…,num2 j ,…,num2 znum}、{num31,…,num3 j ,…,num3 znum} Sort all the values ​​in it from largest to smallest, and get the first znum+1 values ​​in the sorted result;

[0179] For each value val in the first znum+1 values node , get val node The corresponding coordinate x of the largest area to be determined is on the X-axis node , calculate the average

[0180] The dimension K of the CBCT tomographic image in the X-axis direction is obtained, where the value of K is equal to the number of the sagittal views in the sagittal view group; based on the average value Average and the dimension K, the to-be-determined center area with the largest area corresponding to the first znum+1 values ​​is filtered; based on the to-be-determined center area retained after filtering, the three-dimensional coordinates of each bead on the optical positioning device are determined.

[0181] Exemplary Electronic Devices

[0182] Fig.12 The electronic device provided by an exemplary embodiment of the present invention may be any one or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive the collected input signals from them. Fig.12 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present disclosure. Fig.12 As shown, the electronic device includes one or more processors 121 and a memory 122 .

[0183] The processor 121 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.

[0184] The memory 122 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 121 may run the program instructions to implement the method for identifying the round bead on the optical positioning device in the CBCT tomographic image of the software program of each embodiment of the present disclosure described above and / or other desired functions. In one example, the electronic device may also include: an input device 123 and an output device 124, and these components are interconnected through a bus system and / or other forms of connection mechanisms (not shown).

[0185] In addition, the input device 123 may also include, for example, a keyboard, a mouse, etc.

[0186] The output device 124 can output various information to the outside. The output device 124 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto.

[0187] Of course, to simplify, Fig.12 Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.

[0188] Exemplary computer program products and computer-readable storage media

[0189] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method for identifying beads on an optical positioning device in a CBCT tomographic image according to various embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.

[0190] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0191] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the processor executes the steps of a method for identifying a bead on an optical positioning device in a CBCT tomographic image according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.

[0192] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0193] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0194] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0195] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0196] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.

[0197] It should also be noted that in the apparatus, equipment and method of the present disclosure, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present disclosure. The above description of the disclosed aspects is provided to enable any technician in the field to make or use the present disclosure. Various modifications to these aspects are very obvious to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown here, but to the widest range consistent with the principles and novel features disclosed herein.

[0198] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A method for identifying a bead on an optical positioning device in a CBCT tomographic image, characterized in that: include: Step S1: Acquire a CBCT tomographic image, wherein the CBCT tomographic image includes a plurality of images taken of the optical positioning device and arranged in a vertical direction; Cutting the three-dimensional image corresponding to the CBCT tomographic image to obtain a cross-sectional view group, a coronal view group, and a sagittal view group of the three-dimensional image; taking the Cartesian coordinate system of the CBCT tomographic image as the reference coordinate system, cutting the three-dimensional image along the Z-axis direction to obtain a cross-sectional view group, wherein the cross-sectional view group includes one or more cross-sectional views, cutting the three-dimensional image along the Y-axis direction to obtain a coronal view group, wherein the coronal view group includes one or more coronal views, and cutting the three-dimensional image along the X-axis direction to obtain a sagittal view group, wherein the sagittal view group includes one or more sagittal views; Step S2: performing a filtering operation on the non-blank area in each of the cross-sectional view group, the coronal view group, and the sagittal view group, that is, the area with the object outline, to obtain one or more center areas to be determined in each view; Step S3, obtaining the center of each bead on the optical positioning device in the cross-sectional view; the to-be-determined center areas in different cross-sectional views corresponding to the center of the same bead constitute concentric circles, and obtaining the number of the to-be-determined center areas corresponding to each concentric circle {num11,…,num1 j ,…,num1 znum }; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area max1 among the corresponding to-be-determined circle center areas j , record the largest area to be determined center area max1 j The three-dimensional coordinates in the CBCT tomographic image; wherein, 1≤j≤znum, znum is the number of beads on the optical positioning device, num1 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the cross-sectional view group; Step S4, obtaining the center of each bead on the optical positioning device in the coronal view; the to-be-determined center areas in different coronal views corresponding to the center of the same bead constitute concentric circles, and obtaining the number of the to-be-determined center areas corresponding to each concentric circle {num21,…,num2 j ,…,num2 znum }; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area among the corresponding to-be-determined circle center areas max2 j , record the largest area to be determined center area max2 j The three-dimensional coordinates in the CBCT tomographic image; wherein num2 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the coronal view group; Step S5, obtaining the center of each bead on the optical positioning device in the sagittal plane view; the to-be-determined center areas in different sagittal plane views corresponding to the center of the same bead constitute concentric circles, and obtaining the number of the to-be-determined center areas corresponding to each concentric circle {num31, ..., num3 j ,…,num3 znum }; For each concentric circle, obtain the largest area of ​​the corresponding to-be-determined circle center area max3 j , record the largest area to be determined center area max3 j The three-dimensional coordinates in the CBCT tomographic image; wherein num3 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the sagittal view group; and Step S6, {num11,…,num1 j ,…,num1 znum }、{num21,…,num2 j ,…,num2 znum }、{num31,…,num3 j ,…,num3 znum } in descending order, and obtain the first znum+1 values ​​in the sorting result; for each value val in the first znum+1 values node , get val node The corresponding coordinate x of the largest area to be determined is on the X-axis node , calculate the average The dimension K of the CBCT tomographic image in the X-axis direction is obtained, where the value of K is equal to the number of the sagittal views in the sagittal view group; based on the average value Average and the dimension K, the to-be-determined center area with the largest area corresponding to the first znum+1 values ​​is filtered; based on the to-be-determined center area retained after filtering, the three-dimensional coordinates of each bead on the optical positioning device are determined.

2. The method according to claim 1, characterized in that The three-dimensional coordinates are index coordinate values, wherein the index coordinate values ​​represent the serial number of the current voxel or pixel relative to the origin pixel of the entire view.

3. The method according to claim 2, characterized in that The CBCT tomographic image includes a plurality of image sequences, each image has a size of D×D, and the corresponding size of the three-dimensional image formed by combining all the images is D×D×N. After slicing the three-dimensional image, the cross-sectional view group includes N cross-sectional views, and the size of each cross-sectional view is D×D. The coronal view group includes D coronal views, and the size of each coronal view is D×N; the sagittal view group includes D sagittal views, and the size of each sagittal view is D×N.

4. The method according to claim 3, characterized in that In step S2, the radius R of the ball is obtained in advance; in the view, the radius of the ball Where Spacing is the voxel spacing of the CBCT tomographic image, then in the view, the area of ​​the bead is CircleArea = πR' 2 , the circumference of the bead is ArcLength=2πR', the threshold range of the bead area in the view is [0.5CircleArea, 1.5CircleArea], and the threshold range of the circumference of the bead in the view is [0.5ArcLength, 1.5ArcLength]; With respect to all non-blank areas in each view in each of the view groups, for each of all non-blank areas in each of the views, obtain the perimeter and area of ​​the non-blank area; if the area of ​​the non-blank area is not within the threshold range of the bead area in the view, or the perimeter of the non-blank area is not within the threshold range of the bead perimeter in the view, then the non-blank area is a non-circular area and fails to pass filtering; the non-blank area that passes filtering is a quasi-circular area, and the quasi-circular area is used as the center area to be determined.

5. The method according to claim 4, characterized in that The step S3, obtaining the center of each ball on the optical positioning device in the cross-sectional view; the center areas to be determined in different cross-sectional views corresponding to the center of the same ball form concentric circles, including: Obtain the number of beads in the optical positioning device and the zh of each bead j Coordinates in the cross-section view (X j ,Y j );For the center area R to be determined ni , determine its center O ni The coordinates are (X ni ,Y ni ), if the following conditions are met: |X ni -X j |<R' |Y ni -Y j |<R' Then the center area R to be determined ni With beads j is a subordinate relationship, that is, the to-be-determined center area is formed by the corresponding ball, the to-be-determined center area is a two-dimensional section, the ball is a three-dimensional spherical surface, and the to-be-determined center area R ni With beads j It has concentric axes; the center areas to be determined that are subordinate to the same ball constitute concentric circles.

6. The method according to claim 5, characterized in that Set a matrix to store information. The matrix has five columns, namely X, Y, Z, Area, and Update Time, which are respectively used to represent the exponential coordinate value of a bead in the X-axis direction, the exponential coordinate value in the Y-axis direction, the exponential coordinate value in the Z-axis direction, the non-blank area with the largest area of ​​the bead that meets the filtering conditions in each view group, and the number of non-blank areas belonging to the bead.

7. The method according to any one of claims 1 to 6, characterized in that: After step S6, step S7 is also included: based on the three-dimensional coordinates of each bead on the optical positioning device, the distance between each bead and other beads on the optical positioning device is determined, and based on the pre-recorded distance information between each bead on the optical positioning device, the serial number of each bead is determined.

8. The method according to claim 7, characterized in that After step S7, the method further includes step S8: determining the detection error based on the pre-recorded distance information between the beads on the optical positioning device and the detected distance information between the beads on the optical positioning device.

9. A device for identifying a bead on an optical positioning device in a CBCT tomographic image, characterized in that: include: A cutting module: configured to obtain a CBCT tomographic image, wherein the CBCT tomographic image includes a plurality of images taken of the optical positioning device and arranged in a vertical direction; cut a three-dimensional image corresponding to the CBCT tomographic image to obtain a cross-sectional view group, a coronal view group, and a sagittal view group of the three-dimensional image; using the Cartesian coordinate system of the CBCT tomographic image as a reference coordinate system, cut the three-dimensional image along the Z-axis direction to obtain a cross-sectional view group, wherein the cross-sectional view group includes one or more cross-sectional views, cut the three-dimensional image along the Y-axis direction to obtain a coronal view group, wherein the coronal view group includes one or more coronal views, and cut the three-dimensional image along the X-axis direction to obtain a sagittal view group, wherein the sagittal view group includes one or more sagittal views; The center region to be determined module is configured to perform a filtering operation on the non-blank area, that is, the area with the object outline, in each view of the cross-sectional view group, the coronal view group, and the sagittal view group to obtain one or more center regions to be determined in each view; Cross-section processing module: configured to obtain the center of each bead on the optical positioning device in the cross-section view; the to-be-determined center area in different cross-section views corresponding to the center of the same bead constitutes concentric circles, and obtains the number of the to-be-determined center area corresponding to each concentric circle {num11,…,num1 j ,…,num1 znum }; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area max1 among the corresponding to-be-determined circle center areas j , record the largest area to be determined center area max1 j The three-dimensional coordinates in the CBCT tomographic image; wherein, 1≤j≤znum, znum is the number of beads on the optical positioning device, num1 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the cross-sectional view group; Coronal plane processing module: configured to obtain the center of each bead on the optical positioning device in the coronal plane view; the to-be-determined center area corresponding to the center of the same bead in different coronal plane views constitutes concentric circles, and obtains the number of the to-be-determined center area corresponding to each concentric circle {num21,…,num2 j ,…,num2 znum }; For each concentric circle, obtain the largest area of ​​the to-be-determined circle center area among the corresponding to-be-determined circle center areas max2 j , record the largest area to be determined center area max2 j The three-dimensional coordinates in the CBCT tomographic image; wherein num2 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the coronal view group; The sagittal plane processing module is configured to obtain the center of each bead on the optical positioning device in the sagittal plane view; the to-be-determined center areas in different sagittal plane views corresponding to the center of the same bead form concentric circles, and obtain the number of the to-be-determined center areas corresponding to each concentric circle {num31,…,num3 j ,…,num3 znum }; For each concentric circle, obtain the largest area of ​​the corresponding to-be-determined circle center area max3 j , record the largest area to be determined center area max3 j The three-dimensional coordinates in the CBCT tomographic image; wherein num3 j is the number of the to-be-determined circle center regions corresponding to the j-th concentric circle of the sagittal view group; Bead determination module: configured to convert {num11,…, num1 j ,…,num1 znum }、{num21,…,num2 j ,…,num2 znum }、{num31,…,num3 j ,…,num3 znum } in descending order, and obtain the first znum+1 values ​​in the sorting result; for each value val in the first znum+1 values node , get val node The corresponding coordinate x of the largest area to be determined is on the X-axis node , calculate the average The dimension K of the CBCT tomographic image in the X-axis direction is obtained, where the value of K is equal to the number of the sagittal views in the sagittal view group; based on the average value Average and the dimension K, the to-be-determined center area with the largest area corresponding to the first znum+1 values ​​is filtered; based on the to-be-determined center area retained after filtering, the three-dimensional coordinates of each bead on the optical positioning device are determined.

10. A computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium, and the plurality of instructions are used for a processor to load and execute the method according to any one of claims 1 to 8.

11. An electronic device, characterized in that: The electronic device comprises: A processor, which is used to execute multiple instructions; A memory for storing a plurality of instructions; The plurality of instructions are used to be stored in the memory, and loaded and executed by the processor according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Surgical navigation mark bead recognition method, device and equipment

    CN113284160A

  • Marking ball positioning method and application thereof

    CN113902707A