Oral cavity image modeling method and device based on endoscope
By collecting and processing oral images through the endoscope, a three-dimensional Gaussian model is constructed, which solves the problem of low accuracy in endoscopic oral image modeling, improves the efficiency and accuracy of oral modeling, and generates three-dimensional images to help doctors better understand Diagnosis and treatment.
Patent Information
- Application Number
- CN202411190832.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-09-27
AI Technical Summary
The accuracy of oral image modeling based on endoscopes is low. It is affected by factors such as lighting conditions, lens quality, and liquid residues in the oral cavity, resulting in blurred images, high noise, and low contrast, which affects diagnostic accuracy.
Collect multiple basic images through the endoscope, perform grayscale processing and enhancement processing, detect and extract key points, perform key point matching, build a three-dimensional Gaussian model and render it, and generate a three-dimensional oral image.
It improves the efficiency and accuracy of oral modeling, and the generated three-dimensional images can more clearly display the internal structure and lesions of the oral cavity, helping doctors diagnose and treat more accurately.
Smart Images

Figure CN118710818A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an endoscope-based oral image modeling method and device. Background Art
[0002] Endoscopic technology allows doctors to directly observe the fine structures inside the patient's mouth, such as teeth, gums, and oral mucosa, without surgery. Endoscopic-based oral image modeling can help doctors more accurately diagnose oral diseases such as caries, periodontal disease, and oral cancer. The quality of endoscopic images is affected by many factors, such as lighting conditions, lens quality, and liquid and residue in the patient's mouth. These factors may cause problems such as blurred images, high noise, and low contrast, affecting the accuracy and reliability of oral image modeling. Summary of the invention
[0003] The embodiments of the present application provide an endoscope-based oral image modeling method and device, which can at least to some extent solve the problem of low accuracy of endoscope-based oral image modeling.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of the present application, an endoscope-based oral image modeling method is provided, including: collecting multiple basic images of the interior of the oral cavity through an endoscope; performing grayscale processing on pixel points in the basic images to generate a first image corresponding to the basic image; performing enhancement processing on the first image to generate a second image; detecting and extracting key points in the second image, matching key points between each of the second images, and determining the information corresponding to the key points in three-dimensional space; constructing a three-dimensional Gaussian model based on the information of the key points, and rendering the three-dimensional Gaussian model to generate a three-dimensional image of the oral cavity.
[0006] According to one aspect of the present application, an endoscope-based oral image modeling device is provided, comprising: An acquisition unit, used for acquiring multiple basic images of the interior of the oral cavity through an endoscope; A grayscale unit, used to perform grayscale processing on pixels in the basic image to generate a first image corresponding to the basic image; an enhancement unit, configured to perform enhancement processing on the first image to generate a second image; A detection unit, configured to detect and extract key points in the second images, perform key point matching between the second images, and determine information corresponding to the key points in the three-dimensional space; The modeling unit is used to construct a three-dimensional Gaussian model based on the information of the key points, and render the three-dimensional Gaussian model to generate a three-dimensional image of the oral cavity.
[0007] According to one aspect of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the endoscope-based oral image modeling method as described in the above embodiment is implemented.
[0008] According to one aspect of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the endoscope-based oral image modeling method as described in the above-mentioned embodiments.
[0009] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the oral image modeling method based on an endoscope provided in the above-mentioned various optional implementations.
[0010] In the technical solution of the present application, multiple basic images of the interior of the oral cavity are collected through an endoscope; the pixel points in the basic image are gray-scaled to generate a first image corresponding to the basic image; the first image is enhanced to generate a second image; the key points in the second image are detected and extracted, key point matching is performed between each of the second images, the information corresponding to the key points in three-dimensional space is determined, a three-dimensional Gaussian model is constructed based on the information of the key points, and the three-dimensional Gaussian model is rendered to generate a three-dimensional image of the oral cavity. This solution performs gray-scale processing on these images to simplify the image data and retain key morphological information, determines the positions of these key points in three-dimensional space through a matching algorithm, and constructs a three-dimensional Gaussian model of the oral cavity to simulate the shape and positional relationship of the internal structure of the oral cavity, and finally renders the three-dimensional model to generate a three-dimensional image of the oral cavity, thereby improving the efficiency and accuracy of oral modeling.
[0011] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0013] Figure 1 The flowchart of the endoscope-based oral image modeling method in one embodiment of the present application is schematically shown.
[0014] Figure 2 The flowchart of generating a three-dimensional image of an oral cavity in one embodiment of the present application is schematically shown.
[0015] Figure 3 The schematic diagram of an endoscope-based oral image modeling device in one embodiment of the present application is schematically shown.
[0016] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0017] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0018] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0019] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0020] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0021] The implementation details of the technical solution of this application are described in detail below: Figure 1 FIG. 1 is a flow chart of an endoscope-based oral image modeling method according to an embodiment of the present application. Figure 1 As shown, the endoscope-based oral image modeling method includes at least steps S110 to S150, which are described in detail as follows: In step S110 , a plurality of basic images of the interior of the oral cavity are collected through an endoscope.
[0022] In one embodiment of the present application, a professional endoscope for oral examination is selected, such as an electronic oral endoscope, which generally includes a USB image acquisition box, a probe part (including an optical lens, a CC photoelectric coupling device, and an illumination cold light source) and a host part (a computer host). The USB image acquisition box is connected to the computer host through a USB cable to transmit the image to the computer.
[0023] Choose a high-resolution endoscope to ensure that clear images of the oral cavity can be captured. The device should have the ability to shoot from multiple angles to cover all areas of the oral cavity, and capture multiple images of the oral cavity under different lighting conditions to ensure that the entire oral area is covered. Try to keep the endoscope stable during each shot to reduce image blur.
[0024] In this embodiment, images can be captured by buttons on the endoscope system or control software on a computer. Multiple basic images are collected at different positions, angles and depths inside the oral cavity, and the collected images are usually stored in digital form.
[0025] Optionally, image processing software can be used to enhance, segment, and annotate the image to improve image quality and diagnostic accuracy. By collecting multiple basic images of the oral cavity through an endoscope, the details of the oral cavity can be accurately obtained, including the morphology and color information of the teeth, gums, oral mucosa, etc.
[0026] In step S120, grayscale processing is performed on the pixels in the basic image to generate a first image corresponding to the basic image.
[0027] In one embodiment of the present application, grayscale processing is the process of converting a color image into a grayscale image. A grayscale image is a special form of a color image, in which the color information of each pixel is represented by a grayscale value, and the grayscale value usually ranges from 0 (black) to 255 (white).
[0028] In the process of converting a color image to a grayscale image, the maximum value of the brightness of the three RGB components in the color image can be used as the grayscale value of the grayscale image, or the average value of the brightness of the three RGB components in the color image can be used as the grayscale value of the grayscale image.
[0029] In one embodiment of the present application, grayscale processing is performed on pixels in the basic image to generate a first image corresponding to the basic image, including: Obtaining pixel values corresponding to each coordinate position from the basic image; A grayscale value corresponding to the coordinate position is calculated based on the pixel value, and a first image is generated according to the grayscale value.
[0030] In one embodiment of the present application, grayscale processing is performed on pixels in the basic image to generate a first image corresponding to the basic image, including: Get the parameters of each channel based on the coordinate position of the pixel point; Based on the channel parameters, calculate the grayscale value corresponding to the coordinate position for: ; in, Indicates the coordinate position of the pixel point. , , Respectively represent the channel parameters corresponding to the pixel in red, green, and blue.
[0031] Taking the image captured by the oral endoscope as an example, after grayscale processing using the weighted average method, a grayscale image containing only brightness information can be obtained. This image can clearly show the structure and detailed information inside the oral cavity, providing an important reference for subsequent disease diagnosis and treatment. The above process realizes the conversion from color image to grayscale image, so that the image no longer contains color information and only retains brightness information. The grayscale image can better retain the brightness characteristics and visual information of the original image. Converting the color information in the basic image into grayscale information can simplify the image data and reduce the amount of calculation for subsequent processing, while retaining the morphological and texture characteristics of the image, which is convenient for subsequent analysis and processing.
[0032] In step S130, the first image is enhanced to generate a second image.
[0033] In one embodiment of the present application, performing enhancement processing on the first image to generate a second image includes: Filtering the first image for noise removal by using a filter to obtain a denoised image; Normalizing the pixel values of the denoised image to generate a second image.
[0034] In one embodiment of the present application, filtering the first image for noise by using a filter to obtain a denoised image includes: According to the grayscale values of the pixels in the first image, the first image is filtered out through a filter to obtain a denoised image. for: ; Where k represents the size of the filter, Represents the preset pixel parameters, i, j represents the filter variable; In the above process, the filter can effectively remove the noise in the image. While removing the noise, the filter also needs to retain the image details as much as possible. The image after noise filtering is more visually comfortable, reducing the visual interference caused by noise and improving the readability and comprehensibility of the image.
[0035] Normalize the pixel values of the denoised image to generate a second image for: ; in, represents the minimum pixel value in the denoised image, Indicates the maximum pixel value in the denoised image.
[0036] In the above process, normalization processing scales the pixel values of the image to a uniform range (such as between 0 and 1), which helps to eliminate the impact of differences in brightness, contrast, etc. between different images, making subsequent processing more consistent and stable. Through image enhancement processing, useful information in the image can be highlighted, such as the outline of teeth, the color of gums, etc., while suppressing useless noise and interference, improving the clarity and readability of the image.
[0037] In step S140, key points in the second images are detected and extracted, key point matching is performed between the second images, and information corresponding to the key points in the three-dimensional space is determined.
[0038] In one embodiment of the present application, detecting and extracting key points in the second image includes: Detecting extreme points in the second image by using Gaussians of different scales; Selecting key points from the extreme points according to the contrast and edge information of the extreme points; The allocation direction of the key point is determined according to the gradient direction around the key point, and the feature description of the key point is generated based on the local gradient histogram corresponding to each key point.
[0039] Specifically, in the above process, the key points in the second image are detected, and the process is as follows: 1. Scale space extremum detection: Detect extreme points in the image by Gaussian blurring at different scales.
[0040] 2. Key point positioning: remove low-contrast points and edge response points to determine stable key points.
[0041] 3. Direction assignment: Assign directions according to the gradient directions around the key points so that the feature points have direction invariance.
[0042] 4. Key point description: Calculate the local gradient histogram at each key point to generate a feature description. Generate a description for each key point for subsequent feature matching. The description is rotation-invariant and scale-invariant to ensure that it can still match under different viewing angles and lighting conditions.
[0043] The above process can accurately locate the internal structure of the oral cavity by detecting and extracting key points in the second image, such as corner points and intersection points of teeth. These key points play a vital role in subsequent 3D reconstruction and rendering.
[0044] In one embodiment of the present application, key point matching is performed between each of the second images to match feature points in images of different viewing angles, and the steps are as follows.
[0045] 1. Match descriptions: Calculate the distance between each feature description in the two images and find the closest matching point.
[0046] 2. Distance screening: Set the distance threshold to remove incorrect matching points with large distances.
[0047] 3. Bidirectional matching: ensure that the matched point pairs are nearest neighbors to each other, further improving the matching accuracy.
[0048] After the above process, the fundamental matrix is calculated using the matched feature points for: ; in To match the feature points, inverse the transpose matrix. is the identity matrix, To match the inverse matrix of the feature points, the basic matrix is obtained through random sampling and iterative optimization. The minimum value of is used to remove the wrong matching points and ensure the accuracy of the basic matrix.
[0049] After the above process, the camera's pose is restored through the fundamental matrix, and the position of the 3D point is calculated using triangulation. The steps are as follows.
[0050] 1. Camera pose recovery: Recover the camera’s rotation and translation matrices based on the base matrix.
[0051] 2. Triangulation: Using matching points from multiple viewpoints, the position of a 3D point is calculated through triangulation.
[0052] The above process matches the key points in each second image and determines their corresponding position information in three-dimensional space, which is the basis for building a three-dimensional model of the oral cavity. Through this process, the spatial relationship of the internal structure of the oral cavity can be established, providing accurate data support for three-dimensional modeling of the oral cavity.
[0053] In step S150, a three-dimensional Gaussian model is constructed based on the information of the key points, and the three-dimensional Gaussian model is rendered to generate a three-dimensional image of the oral cavity.
[0054] like Figure 2 As shown, in one embodiment of the present application, a three-dimensional Gaussian model is constructed based on the information of the key points, and the three-dimensional Gaussian model is rendered to generate a three-dimensional image of the oral cavity, including: S210, acquiring information of key points, wherein the information includes position information, color information, transparency information, and feature radius of the key points; S220, constructing a three-dimensional Gaussian model according to the information of the key points; S230, projecting the three-dimensional Gaussian model onto a pixel plane based on the camera posture, and determining contribution values of feature parameters in the three-dimensional Gaussian model on the pixel plane; S240, rendering the three-dimensional Gaussian model in color, depth, and contour based on the contribution value, and generating a rendering color, a rendering depth, and a rendering contour respectively; S250: Generate a three-dimensional image of the oral cavity based on the rendering color, rendering depth, and rendering contour.
[0055] In the above process, information of the feature points is obtained, including position information, color information, transparency information and feature radius of the feature points.
[0056] In this implementation, when constructing a three-dimensional Gaussian model, four types of attributes of feature points in the three-dimensional Gaussian model are used to represent each Gaussian distribution: position information , color information , transparency information and the characteristic radius , so we get a three-dimensional Gaussian model for: ; Among them, the suffix i represents the identifier of the feature point, and x represents the coordinate information of the pixel point.
[0057] After that, the 3D Gaussian model is rendered as a flat image by first sorting the 3D Gaussian models from front to back for a given camera pose, and then projecting them onto the pixel plane. Pixels on the pixel plane Contribution value for: ; in, and By formula Calculated, j Represents the pixel identity on the pixel plane.
[0058] After the contribution value is calculated, the three-dimensional Gaussian model is rendered in color, depth, and contour based on the contribution value to generate a rendering color, a rendering depth, and a rendering contour, respectively.
[0059] Specifically, the color of the three-dimensional Gaussian model is rendered based on the contribution value, that is, the color parameters of the key points in the three-dimensional Gaussian model are weighted summed by the contribution value to generate the corresponding rendering color of the three-dimensional image for: ; in, is the color parameter in the three-dimensional Gaussian model, n Indicates the number of key points.
[0060] Then the depth map in the Gaussian image and contour plot Render and generate rendering depth And rendering outlines , the rendering process is as follows: ; ; in, is the Gaussian point in the camera coordinate system Depth.
[0061] In the above process, after the rendering color, rendering depth and rendering contour are generated, the three-dimensional Gaussian model is updated and adjusted based on the above information to generate a final three-dimensional image of the oral cavity.
[0062] The above process builds a 3D Gaussian model based on the information of feature points, which can realize a comprehensive and intuitive visualization of the internal structure of the oral cavity. This 3D image can not only help doctors understand the internal structure and lesions of the oral cavity more clearly, but also provide patients with more intuitive and vivid treatment explanations and demonstrations.
[0063] In the technical solution of the present application, multiple basic images of the interior of the oral cavity are collected through an endoscope; the pixel points in the basic image are gray-scaled to generate a first image corresponding to the basic image; the first image is enhanced to generate a second image; the key points in the second image are detected and extracted, key point matching is performed between each of the second images, the information corresponding to the key points in three-dimensional space is determined, a three-dimensional Gaussian model is constructed based on the information of the key points, and the three-dimensional Gaussian model is rendered to generate a three-dimensional image of the oral cavity. This solution performs gray-scale processing on these images to simplify the image data and retain key morphological information, determines the positions of these key points in three-dimensional space through a matching algorithm, and constructs a three-dimensional Gaussian model of the oral cavity to simulate the shape and positional relationship of the internal structure of the oral cavity, and finally renders the three-dimensional model to generate a three-dimensional image of the oral cavity, thereby improving the efficiency and accuracy of oral modeling.
[0064] The following describes an embodiment of the device of the present application, which can be used to execute the endoscope-based oral image modeling method in the above-mentioned embodiment of the present application. It can be understood that the device can be a computer program (including program code) running in a computer device, for example, the device is an application software; the device can be used to execute the corresponding steps in the method provided in the embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the endoscope-based oral image modeling method in the above-mentioned embodiment of the present application.
[0065] Figure 3 A block diagram of an endoscope-based oral image modeling device according to an embodiment of the present application is shown.
[0066] Reference Figure 3 As shown, an endoscope-based oral image modeling device according to an embodiment of the present application includes: A collection unit 310 is used to collect multiple basic images of the interior of the oral cavity through an endoscope; A grayscale unit 320, configured to perform grayscale processing on pixels in the basic image to generate a first image corresponding to the basic image; An enhancement unit 330, configured to perform enhancement processing on the first image to generate a second image; A detection unit 340, configured to detect and extract key points in the second images, perform key point matching between the second images, and determine information corresponding to the key points in the three-dimensional space; The modeling unit 350 is used to construct a three-dimensional Gaussian model based on the information of the key points, and render the three-dimensional Gaussian model to generate a three-dimensional image of the oral cavity.
[0067] In the present application, based on the aforementioned scheme, the grayscale processing of the pixel points in the basic image to generate a first image corresponding to the basic image includes: obtaining the pixel value corresponding to each coordinate position from the basic image; calculating the grayscale value corresponding to the coordinate position based on the pixel value, and generating the first image according to the grayscale value.
[0068] In the present application, based on the above scheme, the grayscale processing of the pixel points in the base image to generate the first image corresponding to the base image includes: obtaining each channel parameter based on the coordinate position of the pixel point; calculating the grayscale value corresponding to the coordinate position based on the channel parameter; for: ; in, Indicates the coordinate position of the pixel point. , , Respectively represent the channel parameters corresponding to the pixel in red, green, and blue.
[0069] In the present application, based on the aforementioned scheme, the enhancement processing of the first image to generate the second image includes: filtering the noise of the first image through a filter to obtain a denoised image; and normalizing the pixel values of the denoised image to generate the second image.
[0070] In the present application, based on the above-mentioned solution, the step of filtering the first image through a filter to obtain a denoised image includes: filtering the first image through a filter according to the grayscale value of the pixel point in the first image to obtain a denoised image. for: ; in, Represents the preset pixel parameters, i, j represents the filter variable, k represents the size of the filter; Normalizing the pixel values of the denoised image to generate a second image, comprising: normalizing the pixel values of the denoised image to generate a second image for: ; in, represents the minimum pixel value in the denoised image, Indicates the maximum pixel value in the denoised image.
[0071] In the present application, based on the aforementioned scheme, the detection and extraction of key points in the second image includes: detecting extreme points in the second image through Gaussians of different scales; selecting key points from the extreme points based on the contrast and edge information of the extreme points; determining the allocation direction of the key points based on the gradient direction around the key points, and generating a feature description of the key points based on the local gradient histogram corresponding to each key point.
[0072] In the present application, based on the aforementioned scheme, a three-dimensional Gaussian model is constructed based on the information of the key points, and the three-dimensional Gaussian model is rendered to generate a three-dimensional image of the oral cavity, including: obtaining information of the key points, the information including position information, color information, transparency information and feature radius of the key points; constructing a three-dimensional Gaussian model according to the information of the key points; based on the camera posture, projecting the three-dimensional Gaussian model onto a pixel plane, and determining the contribution value of the feature parameters in the three-dimensional Gaussian model on the pixel plane; rendering the color, depth and contour of the three-dimensional Gaussian model based on the contribution value, and generating rendering color, rendering depth and rendering contour respectively; generating a three-dimensional image of the oral cavity based on the rendering color, rendering depth and rendering contour.
[0073] In the technical solution of the present application, multiple basic images of the interior of the oral cavity are collected through an endoscope; the pixel points in the basic image are gray-scaled to generate a first image corresponding to the basic image; the first image is enhanced to generate a second image; the key points in the second image are detected and extracted, key point matching is performed between each of the second images, the information corresponding to the key points in three-dimensional space is determined, a three-dimensional Gaussian model is constructed based on the information of the key points, and the three-dimensional Gaussian model is rendered to generate a three-dimensional image of the oral cavity. This solution performs gray-scale processing on these images to simplify the image data and retain key morphological information, determines the positions of these key points in three-dimensional space through a matching algorithm, and constructs a three-dimensional Gaussian model of the oral cavity to simulate the shape and positional relationship of the internal structure of the oral cavity, and finally renders the three-dimensional model to generate a three-dimensional image of the oral cavity, thereby improving the efficiency and accuracy of oral modeling.
[0074] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0075] It should be noted that the computer system 400 of the electronic device shown in the figure is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0076] The computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 to the random access memory (RAM) 403, such as executing the method described in the above embodiment. Various programs and data required for system operation are also stored in the RAM 403. The CPU 401, the ROM 402 and the RAM 403 are connected to each other through the bus 404. The input / output (I / O) interface 405 is also connected to the bus 404.
[0077] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.
[0078] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 409, and / or installed from a removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, various functions defined in the system of the present application are executed.
[0079] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a 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. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0080] The flowchart and block diagram in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0081] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0082] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
[0083] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0084] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0085] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation method of the present application.
[0086] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0087] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. An oral image modeling method based on endoscope, characterized in that: include: Acquire multiple basic images of the oral cavity through endoscopy; Performing grayscale processing on pixel points in the basic image to generate a first image corresponding to the basic image; Performing enhancement processing on the first image to generate a second image; Detecting and extracting key points in the second images, performing key point matching between the second images, and determining information corresponding to the key points in the three-dimensional space; A three-dimensional Gaussian model is constructed based on the information of the key points, and the three-dimensional Gaussian model is rendered to generate a three-dimensional image of the oral cavity.
2. The method according to claim 1, characterized in that Performing grayscale processing on pixels in the basic image to generate a first image corresponding to the basic image includes: Acquire parameters of each channel based on the coordinate positions of the pixels in the base image; Based on the channel parameters, calculate the grayscale value corresponding to the coordinate position for: ; in, Indicates the coordinate position of the pixel point. , , Respectively represent the channel parameters corresponding to the pixel in red, green, and blue.
3. The method according to claim 1, characterized in that Performing enhancement processing on the first image to generate a second image includes: Filtering the first image for noise removal by using a filter to obtain a denoised image; Normalizing the pixel values of the denoised image to generate a second image.
4. The method according to claim 3, characterized in that: The method of filtering the first image for noise removal by using a filter to obtain a denoised image includes: According to the grayscale values of the pixels in the first image, the first image is filtered out through a filter to obtain a denoised image. for: ; Where k represents the size of the filter, Represents the preset pixel parameters, i, j represents the filter variable; Normalizing the pixel values of the denoised image to generate a second image includes: Normalize the pixel values of the denoised image to generate a second image for: ; in, represents the minimum pixel value in the denoised image, Indicates the maximum pixel value in the denoised image.
5. The method according to claim 1, characterized in that Detecting and extracting key points in the second image, comprising: Detecting extreme points in the second image by using Gaussians of different scales; Selecting key points from the extreme points according to the contrast and edge information of the extreme points; The allocation direction of the key point is determined according to the gradient direction around the key point, and the feature description of the key point is generated based on the local gradient histogram corresponding to each key point.
6. The method according to claim 1, characterized in that Constructing a three-dimensional Gaussian model based on the information of the key points, and rendering the three-dimensional Gaussian model to generate a three-dimensional image of the oral cavity, including: Acquire information of key points, the information including position information, color information, transparency information and feature radius of the key points; Constructing a three-dimensional Gaussian model according to the information of the key points; Based on the camera posture, the three-dimensional Gaussian model is projected onto a pixel plane, and contribution values of feature parameters in the three-dimensional Gaussian model on the pixel plane are determined; Rendering the three-dimensional Gaussian model in color, depth, and contour dimensions based on the contribution value to generate rendering color, rendering depth, and rendering contour respectively; A three-dimensional image of the oral cavity is generated based on the rendering color, rendering depth, and rendering contour.
7. The method according to claim 6, characterized in that Rendering the three-dimensional Gaussian model in color, depth, and contour dimensions based on the contribution value to generate rendering color, rendering depth, and rendering contour respectively, including: The rendering color is obtained by performing weighted summation on the color parameters of the key point in the three-dimensional Gaussian model according to the contribution value.
8. An oral image modeling device based on an endoscope, characterized in that: include: An acquisition unit, used for acquiring multiple basic images of the interior of the oral cavity through an endoscope; A grayscale unit, used to perform grayscale processing on pixels in the basic image to generate a first image corresponding to the basic image; an enhancement unit, configured to perform enhancement processing on the first image to generate a second image; A detection unit, configured to detect and extract key points in the second images, perform key point matching between the second images, and determine information corresponding to the key points in the three-dimensional space; The modeling unit is used to construct a three-dimensional Gaussian model based on the information of the key points, and render the three-dimensional Gaussian model to generate a three-dimensional image of the oral cavity.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the endoscope-based oral image modeling method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the endoscope-based oral image modeling method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Autonomous multi-degree-of-freedom scanning type endoscope minimally invasive surgery navigation device and system thereof
CN114305684A
Industrial endoscope view field range adjusting method and system
CN117350996A
Method for synthesizing new view angle of lunar surface based on Gaussian radiation field
CN118469836A
Cited By
Space target point cloud three-dimensional reconstruction and rendering method
CN119919587A
