Optical path intelligent adjustment method and system for a novel fluorescent integrated 4K nasal skull base endoscope
The particle swarm light path adjustment algorithm intelligently adjusts the light path of the nasal skull base mirror, which solves the problem of poor fluorescence image quality during nasal skull base surgery, improves the accuracy and efficiency of the surgery, and ensures clear and uniform fluorescence images during the surgery. show.
Patent Information
- Application Number
- CN202410918679.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-10
AI Technical Summary
In nasal and skull base surgery, the traditional fluorescent integrated 4K nasal skull base scope has insufficient stability and reliability in the design of the optical system and fluorescence excitation light source, resulting in poor fluorescence image quality, especially in extreme cases, which may lead to loss of fluorescence signals. Affect surgical accuracy and safety.
The particle swarm optical path adjustment algorithm is used to collect skull base fluorescence images, separate the target area and background, construct optical path evaluation indicators and image clarity evaluation indicators, generate control parameters, and intelligently adjust the optical path of the nasal skull base mirror, including adjusting brightness, focal length and Aperture to ensure clear, uniform fluorescence images.
It achieves clear and uniform fluorescence image display during surgery, improves the accuracy and efficiency of surgery, reduces surgical risks, and ensures the best fluorescence image quality.
Smart Images

Figure CN118452806B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical device technology, and specifically to a novel optical path intelligent adjustment method and system for a fluorescent integrated 4K nasal skull base mirror. Background Art
[0002] In the field of modern medicine, minimally invasive surgery is increasingly favored by doctors and patients for its small trauma and quick recovery. Especially for nasal skull base surgery, since the surgical area is deep and complex, it places extremely high demands on surgical instruments and imaging technology. Although traditional nasal skull base endoscopes can meet surgical needs to a certain extent, they still need to be improved in terms of imaging quality, field of view and clarity.
[0003] With the continuous development of optical technology and image processing technology, 4K ultra-high-definition imaging technology has been widely used in many fields. Especially in the medical field, ultra-high-definition imaging technology can provide more detailed and accurate images, help doctors better observe the surgical area, and improve the accuracy and safety of the operation. However, for nasal skull base surgery, in actual clinical applications, when the endoscope is pulled closer, the density of the excitation spot increases, the fluorescence intensity increases accordingly, and the image brightness increases; conversely, when the endoscope is pulled away, the density of the excitation spot decreases, the fluorescence intensity weakens, and the image brightness decreases. In some extreme cases, due to the excitation spot being too sparse or deviating from the target area, the fluorescence signal may not be effectively captured, resulting in the loss of the fluorescence image. Therefore, relying solely on 4K ultra-high-definition imaging technology is not enough to completely solve all problems during the operation. It is necessary to optimize the design of the optical system and the fluorescence excitation light source to improve its stability and reliability, and further improve the imaging quality of the fluorescence image. Due to the particularity and complexity of the surgical area, how to ensure that a clear and uniform fluorescence image is obtained during the operation has become an urgent problem to be solved.
[0004] For example, the existing Chinese patent with publication number CN115005754A discloses a full-field ultra-minimally invasive multi-channel laparoscopic imaging device, which adopts a split light source mirror body and an imaging mirror body. After adjusting the position and angle through the mirror body positioning and fixing mechanism, multiple light source mirror bodies can be used to illuminate the entire abdominal cavity, and multiple imaging mirror bodies can be used to collect images of different areas of the abdominal cavity. After the host of the camera system obtains the images of each area uploaded by each imaging mirror body, the images of each area are spliced and displayed through a display, so that full-field imaging of the abdominal cavity can be achieved, which is convenient for inspection and surgery. However, the multiple light source mirror bodies of this design may cause uneven illumination and affect the imaging quality. An increase in the number of imaging mirror bodies may lead to a decrease in image resolution, affecting the accuracy of diagnosis. To this end, the present invention proposes a new optical path intelligent adjustment method and system for a fluorescent integrated 4K nasal skull base mirror. Summary of the invention
[0005] The purpose of the present invention is to provide a novel optical path intelligent adjustment method and system for a fluorescent integrated 4K nasal skull base mirror to solve the existing problems raised in the above background technology.
[0006] To achieve the above object, the present invention provides the following technical solution: a novel optical path intelligent adjustment method of a fluorescent integrated 4K nasal skull base mirror, comprising the following steps:
[0007] S1, collecting a skull base fluorescence image under a fluorescent nasal skull base microscope, and separating a target area and a background in the skull base fluorescence image;
[0008] S2, obtaining the fluorescence image contrast between the target area and the background in the skull base fluorescence image;
[0009] S3, constructing optical path evaluation index and image clarity evaluation index;
[0010] S4, constructing a particle swarm light path adjustment algorithm through the light path evaluation index and the clarity evaluation index, and obtaining control parameters according to the particle swarm light path adjustment algorithm and the fluorescence image contrast;
[0011] S5. Intelligently adjust the optical path of the nasal skull base endoscope according to the control parameters.
[0012] The present invention is further improved in that the specific step S1 comprises:
[0013] S11. Assume that the size of the skull base fluorescence image is pixels, of which , grayscale the skull base fluorescence image to obtain the grayscale value set ,in is the gray value of the pixel in the i-th row and j-th column in the skull base fluorescence image, and the maximum gray value in the gray value set is extracted ; M represents the number of pixels in the horizontal direction of the skull base fluorescence image, and N represents the number of pixels in the vertical direction of the skull base fluorescence image;
[0014] S12. Use the convolution canny operator to calculate the gray gradient value of each pixel in the skull base fluorescence image: ,in is the grayscale gradient value in the vertical direction of the skull base fluorescence image, is the grayscale gradient value in the horizontal direction of the skull base fluorescence image;
[0015] S13, calculate the gray gradient value of each pixel ; Get the gray gradient mean of the skull base fluorescence image ; Set the gradient threshold , when the gray gradient mean When The corresponding pixel points are determined as the separation boundary between the target area and the background in the skull base fluorescence image, and the target area and the background area are obtained.
[0016] The present invention is further improved in that the contrast between the target and the background in the skull base fluorescence image is obtained by gray value calculation, and the gray value sequence of the target area image in step S1 is extracted. and background area image gray value sequence ,in, Indicates The gray value of the target area image, the fluorescence image contrast calculation formula is: , and is a subscript, indicating the number of images in the target area.
[0017] The present invention is further improved in that the optical path evaluation index includes a fluorescent area brightness uniformity index and a fluorescent area brightness dynamic range index, and the fluorescent area brightness uniformity index The target area is divided into A×B grids, and a two-dimensional rectangular coordinate system is established with the grid at the center point of the target area as the coordinate origin. The illumination intensity of each grid is calculated and the average illumination intensity coefficient of the target area is calculated. The calculation formula is expressed as: ;in, is the average illumination intensity coefficient, h represents the distance from the center of the grid to the center of the light source, Indicates that the grid is at position The grid coordinates at , m≤A, n≤B; It represents the light intensity on the normal line of the light source, p is the Lambertian radiation index of the light source, and the calculation formula is ,in When The light source luminous angle at is the maximum value of the average light intensity; then the calculation formula for the brightness uniformity index of the fluorescent area is: ,in, represents the standard deviation of the light source illumination intensity, and the calculation formula of the standard deviation of the light source illumination intensity is: .
[0018] A further improvement of the present invention is that the dynamic range index of the fluorescence area brightness is obtained by extracting the maximum gray value in the gray value sequence of the target area image. Grayscale minimum , and locate the corresponding pixel points and their corresponding fluorescent areas, which are recorded as bright mode points and dark mode points. Through mode point analysis, the shapes and sizes of the bright mode points and dark mode points are analyzed to obtain the edge signal threshold. , use the edge detection algorithm to detect the brightness changes of the bright mode point and the dark mode point, record the edge signal position greater than the set edge signal threshold as the mode point boundary, locate the mode point position, thereby obtaining the bright fluorescent area and the dark fluorescent area, and obtain the gray value mean of the bright fluorescent area and the mean gray value of the dark fluorescent area , get the brightness dynamic range index, the calculation formula is .
[0019] The present invention is further improved in that the image clarity evaluation index is obtained by calculating the edge clarity of the fluorescent area combined with the number of pixels of the skull base fluorescent image. Then the image clarity evaluation index calculation formula is: ,in, and They represent the horizontal gradient of the Sobel operator and the average value of the vertical gradient of the Sobel operator, and They represent the standard deviation of the horizontal gradient of the Sobel operator and the vertical gradient of the Sobel operator, respectively. Represents the covariance between the horizontal gradient of the Sobel operator and the vertical gradient of the Sobel operator.
[0020] The present invention is further improved in that the particle swarm light path adjustment algorithm specifically comprises the following steps:
[0021] S41. Define the initialization particle swarm , the initialization seed particle swarm It is composed of individuals, and the individuals include three light path control operations, including controlling brightness, controlling focus, and controlling aperture;
[0022] S42, randomly generate a set of light path control operation data, and construct a fitness evaluation function ,in, represents the image clarity evaluation index weight, represents the brightness uniformity index weight of the fluorescent area, Represents the brightness dynamic range indicator weight, represents the contrast weight of the fluorescence image;
[0023] S43, sorting the fitness of the randomly generated multiple groups of light path control operation data from high to low, obtaining a fitness sequence, and obtaining a particle swarm. As the first parent population;
[0024] S44, selecting the light path control operation with the highest fitness in the fitness sequence and directly copying it to the next generation, performing individual crossover operations on the remaining light path control operations to form a new population, and listing the new population and the light path control operation with the highest fitness into the second generation population , replace with the second progeny population Become the second parent population;
[0025] S45. Set the fluorescence image clarity threshold , to determine whether the iteration condition is met If satisfied, the particle swarm optical path adjustment algorithm is stopped and the control result is output; if not satisfied, the algorithm returns to S43 to generate the third generation population. replace As the third parent population, it stops iterating until the iteration condition is met;
[0026] S46. Use the control result in step S45 as a control parameter and output it.
[0027] On the other hand, the present invention provides a novel fluorescent integrated 4K nasal skull base mirror optical path intelligent adjustment system, including: a device layer, a data storage layer and a control layer; the device layer includes: a nasal skull base mirror light source, a nasal skull base mirror lens, and a display; the nasal skull base mirror light source is used to provide illumination light in a dark environment of a fluorescent nasal skull base mirror surgery; the nasal skull base mirror lens is used to collect a skull base fluorescent image under a fluorescent nasal skull base mirror; the display is used to magnify and display the skull base fluorescent image under a fluorescent nasal skull base mirror; the data storage layer is used to store data generated during the operation of the system;
[0028] The control layer includes: a fluorescent area separation module, an evaluation function construction module, a control parameter output module and a nasal skull base mirror control and adjustment module; the fluorescent area separation module is used to collect the skull base fluorescent image under the fluorescent nasal skull base mirror, and separate the target area and the background in the skull base fluorescent image; the evaluation function construction module is used to obtain the fluorescent image contrast between the target area and the background in the skull base fluorescent image, and construct an optical path evaluation index and an image clarity evaluation index; the control parameter output module is used to construct a particle swarm optical path adjustment algorithm through the optical path evaluation index and the clarity evaluation index, and obtain control parameters according to the particle swarm optical path adjustment algorithm and the fluorescent image contrast; the nasal skull base mirror control and adjustment module is used to intelligently adjust the optical path of the nasal skull base mirror according to the control parameters.
[0029] Compared with the prior art, the present invention has the following beneficial effects:
[0030] 1. The present invention firstly adopts a particle swarm optical path adjustment algorithm, which can intelligently and automatically adjust the optical path control operation, including brightness, focal length and aperture, according to the actual situation of the skull base fluorescence image, so as to ensure that a clear and uniform fluorescence image is obtained during the operation, thereby improving the accuracy and efficiency of the operation;
[0031] 2. The optical path intelligent adjustment method and system can adjust the optical path parameters in real time according to the surgical requirements to ensure the best quality fluorescent images during the operation, thereby improving the efficiency and accuracy of the operation and reducing the risk of the operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a flow chart of the optical path intelligent adjustment method of the novel fluorescent integrated 4K nasal skull base mirror of the present invention;
[0033] Figure 2 This is a framework diagram of the optical path intelligent adjustment system of the novel fluorescent integrated 4K nasal skull base mirror of the present invention. DETAILED DESCRIPTION
[0034] The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present invention, rather than limitations on the technical solution of the present invention. The embodiments of the present invention and the technical features in the embodiments may be combined with each other unless there is a conflict.
[0035] The term "and / or" is only a description of the association relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " generally indicates that the related objects are in an "or" relationship.
[0036] Example 1
[0037] Figure 1 A flow chart showing the optical path intelligent adjustment method of the novel fluorescent integrated 4K nasal skull base mirror disclosed in this embodiment is shown in FIG. Figure 1 The steps of the optical path intelligent adjustment method of the new fluorescent integrated 4K nasal skull base mirror are as follows:
[0038] S1, collecting a skull base fluorescence image under a fluorescent nasal skull base microscope, and separating the target area and the background in the skull base fluorescence image; the specific steps include:
[0039] S11. Assume that the size of the skull base fluorescence image is pixels, of which , grayscale the skull base fluorescence image to obtain the grayscale value set ,in is the gray value of the pixel in the i-th row and j-th column in the skull base fluorescence image, and the maximum gray value in the gray value set is extracted ;
[0040] S12. Use the convolution canny operator to calculate the gray gradient value of each pixel in the skull base fluorescence image: ,in is the grayscale gradient value in the vertical direction of the skull base fluorescence image, is the grayscale gradient value in the horizontal direction of the skull base fluorescence image;
[0041] S13, calculate the gray gradient value of each pixel ; Get the gray gradient mean of the skull base fluorescence image ; Set the gradient threshold , when the gray gradient mean When The corresponding pixel points are determined as the separation boundary between the target area and the background in the skull base fluorescence image, and the target area and the background area are obtained.
[0042] S2, obtaining the fluorescence image contrast between the target area and the background in the skull base fluorescence image; the fluorescence image contrast between the target area and the background in the skull base fluorescence image is obtained by gray value calculation, and the gray value sequence of the target area image in step S1 is extracted. and background area image gray value sequence ,in, Indicates The gray value of the target area image, the fluorescence image contrast calculation formula is: , and is a subscript, indicating the number of images in the target area.
[0043] S3, constructing an optical path evaluation index and an image clarity evaluation index; the optical path evaluation index includes a fluorescent area brightness uniformity index and a fluorescent area brightness dynamic range index, wherein the fluorescent area brightness uniformity index The target area is divided into A×B grids, and a two-dimensional rectangular coordinate system is established with the grid at the center point of the target area as the coordinate origin. The illumination intensity of each grid is calculated and the average illumination intensity coefficient of the target area is calculated. The calculation formula is expressed as: ;in, is the average illumination intensity coefficient, h represents the distance from the center of the grid to the center of the light source, Indicates that the grid is at position The grid coordinates at , m≤A, n≤B; It represents the light intensity on the normal line of the light source, p is the Lambertian radiation index of the light source, and the calculation formula is ,in When The light source luminous angle at is the maximum value of the average light intensity; then the calculation formula for the brightness uniformity index of the fluorescent area is: ,in, represents the standard deviation of the light source illumination intensity, and the calculation formula of the standard deviation of the light source illumination intensity is: .
[0044] The dynamic range index of the fluorescence area brightness is obtained by extracting the maximum gray value in the gray value sequence of the target area image. Grayscale minimum , and locate the corresponding pixel points and their corresponding fluorescent areas, which are recorded as bright mode points and dark mode points. Through mode point analysis, the shapes and sizes of the bright mode points and dark mode points are analyzed to obtain the edge signal threshold. , use the edge detection algorithm to detect the brightness changes of the bright mode point and the dark mode point, record the edge signal position greater than the set edge signal threshold as the mode point boundary, locate the mode point position, thereby obtaining the bright fluorescent area and the dark fluorescent area, and obtain the gray value mean of the bright fluorescent area and the mean gray value of the dark fluorescent area , get the brightness dynamic range index, the calculation formula is .
[0045] The image clarity evaluation index is calculated by calculating the edge clarity of the fluorescent area and combining it with the number of pixels in the skull base fluorescent image. Then the image clarity evaluation index calculation formula is: ,in, and They represent the horizontal gradient of the Sobel operator and the average value of the vertical gradient of the Sobel operator, and They represent the standard deviation of the horizontal gradient of the Sobel operator and the vertical gradient of the Sobel operator, respectively. Represents the covariance between the horizontal gradient of the Sobel operator and the vertical gradient of the Sobel operator.
[0046] S4, constructing a particle swarm light path adjustment algorithm through the light path evaluation index and the clarity evaluation index, and obtaining control parameters according to the particle swarm light path adjustment algorithm and the fluorescence image contrast. The specific steps of the particle swarm light path adjustment algorithm include:
[0047] S41. Define the initialization particle swarm , the initialized particle swarm It is composed of individuals, and the individuals include three light path control operations, including controlling brightness, controlling focus, and controlling aperture;
[0048] S42, randomly generate a set of light path control operation data, and construct a fitness evaluation function ,in, represents the image clarity evaluation index weight, represents the brightness uniformity index weight of the fluorescent area, Represents the brightness dynamic range indicator weight, represents the contrast weight of the fluorescence image;
[0049] S43, sorting the fitness of the randomly generated multiple groups of light path control operation data from high to low, obtaining a fitness sequence, and obtaining a particle swarm. As the first parent population;
[0050] S44, selecting the light path control operation with the highest fitness in the fitness sequence and directly copying it to the next generation, performing individual crossover operations on the remaining light path control operations to form a new population, and listing the new population and the control operation with the highest fitness into the second generation population , replace with the second progeny population Become the second parent population;
[0051] S45. Set the fluorescence image clarity threshold , to determine whether the iteration condition is met If satisfied, the particle swarm optical path adjustment algorithm is stopped and the control result is output; if not satisfied, the algorithm returns to S43 to generate the third generation population. replace As the third parent population, it stops iterating until the iteration condition is met;
[0052] S46. Use the control result in step S45 as a control parameter and output it.
[0053] S5. According to the control parameters, the optical path of the nasal skull base endoscope is intelligently adjusted, and the optical path evaluation index and the clarity evaluation index are evaluated again to realize the real-time control and monitoring of the optical path intelligent adjustment system of the nasal skull base endoscope.
[0054] The threshold and weight may be set by default according to the present invention, or may be set by an operator.
[0055] Example 2
[0056] Figure 2 The framework diagram of the optical path intelligent adjustment system of the novel fluorescent integrated 4K nasal skull base mirror of the present invention is shown, which is based on the same inventive concept as Example 1, see Figure 2 The present invention provides a novel optical path intelligent adjustment system for a fluorescent integrated 4K nasal skull base mirror, comprising:
[0057] Equipment layer, data storage layer and control layer; the equipment layer includes: a nasal skull base mirror light source, a nasal skull base mirror lens, and a display; the nasal skull base mirror light source is used to provide lighting in a dark environment of fluorescent nasal skull base mirror surgery; the nasal skull base mirror lens is used to collect the skull base fluorescent image under the fluorescent nasal skull base mirror; the display is used to magnify and display the skull base fluorescent image under the fluorescent nasal skull base mirror to facilitate doctors to perform surgery; the data storage layer is used to save the data generated during the operation of the system;
[0058] The control layer includes: a fluorescent area separation module, an evaluation function construction module, a control parameter output module and a nasal skull base mirror control and adjustment module; the fluorescent area separation module is used to collect the skull base fluorescent image under the fluorescent nasal skull base mirror, and separate the target area and the background in the skull base fluorescent image; the evaluation function construction module is used to obtain the fluorescent image contrast between the target area and the background in the skull base fluorescent image, and construct an optical path evaluation index and an image clarity evaluation index; the control parameter output module is used to construct a particle swarm optical path adjustment algorithm through the optical path evaluation index and the clarity evaluation index, and obtain control parameters according to the particle swarm optical path adjustment algorithm and the fluorescent image contrast; the nasal skull base mirror control and adjustment module is used to receive the control parameters output by the particle swarm optical path adjustment parameter output module, and parse them into specific adjustment instructions, which are fed back to the nasal skull base mirror control and adjustment module to realize the adaptive adjustment of the light source of the nasal skull base mirror.
[0059] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0060] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0061] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0062] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0063] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.
Claims
1. A novel optical path intelligent adjustment method for a fluorescent integrated 4K nasal skull base mirror, characterized in that: The following steps are involved: S1, collecting a skull base fluorescence image under a fluorescent nasal skull base microscope, and separating a target area and a background in the skull base fluorescence image; S2, obtaining the fluorescence image contrast between the target area and the background in the skull base fluorescence image; S3, constructing optical path evaluation index and image clarity evaluation index; S4, constructing a particle swarm light path adjustment algorithm through the light path evaluation index and the clarity evaluation index, and obtaining control parameters according to the particle swarm light path adjustment algorithm and the fluorescence image contrast; S5. Intelligently adjust the optical path of the nasal skull base mirror according to the control parameters; The specific steps of the particle swarm light path adjustment algorithm include: S41. Define the initialization particle swarm , the initialized particle swarm It is composed of individuals, and the individuals include three light path control operations, including controlling brightness, controlling focus, and controlling aperture; S42, randomly generate a set of light path control operation data, and construct a fitness evaluation function , in, represents the image clarity evaluation index weight, represents the brightness uniformity index weight of the fluorescent area, Represents the brightness dynamic range indicator weight, represents the contrast weight of the fluorescence image; S43, sorting the fitness of the randomly generated multiple groups of light path control operation data from high to low, obtaining a fitness sequence, and obtaining a particle swarm. As the first parent population; S44, selecting the light path control operation with the highest fitness in the fitness sequence and directly copying it to the next generation, performing individual crossover operations on the remaining light path control operations to form a new population, and listing the new population and the light path control operation with the highest fitness into the second generation population , replace with the second progeny population Become the second parent population; S45. Set the fluorescence image clarity threshold , to determine whether the iteration condition is met If satisfied, the particle swarm optical path adjustment algorithm is stopped and the control result is output; if not satisfied, the algorithm returns to S43 to generate the third generation population. replace As the third parent population, it stops iterating until the iteration condition is met; S46. Use the control result in step S45 as a control parameter and output it.
2. According to the novel fluorescent integrated 4K nasal skull base mirror optical path intelligent adjustment method of claim 1, characterized in that: The specific steps of S1 include: S11. Assume that the size of the skull base fluorescence image is pixels, of which , grayscale the skull base fluorescence image to obtain the gray value set ,in is the gray value of the pixel in the i-th row and j-th column in the skull base fluorescence image, and the maximum gray value in the gray value set is extracted ; M represents the number of pixels in the horizontal direction of the skull base fluorescence image, and N represents the number of pixels in the vertical direction of the skull base fluorescence image; S12. Use the convolution canny operator to calculate the gray gradient value of each pixel in the skull base fluorescence image: ,in is the grayscale gradient value in the vertical direction of the skull base fluorescence image, is the grayscale gradient value in the horizontal direction of the skull base fluorescence image; S13, calculate the gray gradient value of each pixel ; Get the gray gradient mean of the skull base fluorescence image ; Set the gradient threshold , when the gray gradient mean When The corresponding pixel points are determined as the separation boundary between the target area and the background in the skull base fluorescence image, and the target area and the background area are obtained.
3. The optical path intelligent adjustment method of the novel fluorescent integrated 4K nasal skull base mirror according to claim 2 is characterized by: The fluorescence image contrast between the target area and the background in the skull base fluorescence image is obtained by grayscale value calculation, and the grayscale value sequence of the target area image in step S1 is extracted. and background area image gray value sequence ,in, Indicates The gray value of the target area image, the fluorescence image contrast calculation formula is: , and is a subscript, indicating the number of images in the target area.
4. The optical path intelligent adjustment method of the novel fluorescent integrated 4K nasal skull base mirror according to claim 3 is characterized by: The optical path evaluation index includes a fluorescence area brightness uniformity index and a fluorescence area brightness dynamic range index. The target area is divided into A×B grids, and a two-dimensional rectangular coordinate system is established with the grid at the center point of the target area as the coordinate origin. The illumination intensity of each grid is calculated and the average illumination intensity coefficient of the target area is calculated. The calculation formula is expressed as: ;in, is the average light intensity coefficient, h Indicates the distance from the center of the grid to the center of the light source. Indicates that the grid is at position The grid coordinates at , m≤A, n≤B; Represents the light intensity on the light source normal. p is the Lambertian radiation index of the light source, and the calculation formula is ,in When The light source luminous angle at is the maximum value of the average light intensity; then the calculation formula for the brightness uniformity index of the fluorescent area is: ,in, represents the standard deviation of the light source illumination intensity, and the calculation formula of the standard deviation of the light source illumination intensity is: .
5. According to claim 4, the optical path intelligent adjustment method of the novel fluorescent integrated 4K nasal skull base mirror is characterized in that: The dynamic range index of the fluorescence area brightness is obtained by extracting the maximum gray value in the gray value sequence of the target area image. Grayscale minimum , and locate the corresponding pixel points and their corresponding fluorescent areas, which are recorded as bright mode points and dark mode points. Through mode point analysis, the shapes and sizes of the bright mode points and dark mode points are analyzed to obtain the edge signal threshold. , use the edge detection algorithm to detect the brightness changes of the bright mode point and the dark mode point, record the edge signal position greater than the set edge signal threshold as the mode point boundary, locate the mode point position, thereby obtaining the bright fluorescent area and the dark fluorescent area, and obtain the gray value mean of the bright fluorescent area and the mean gray value of the dark fluorescent area , get the brightness dynamic range index, the calculation formula is .
6. The optical path intelligent adjustment method of the novel fluorescent integrated 4K nasal skull base mirror according to claim 5 is characterized by: The image clarity evaluation index is calculated by combining the edge clarity of the fluorescent area with the number of pixels in the skull base fluorescent image. Then the image clarity evaluation index calculation formula is: ,in, and They represent the horizontal gradient of the Sobel operator and the average value of the vertical gradient of the Sobel operator, and They represent the standard deviation of the horizontal gradient of the Sobel operator and the vertical gradient of the Sobel operator, respectively. Represents the covariance between the horizontal gradient of the Sobel operator and the vertical gradient of the Sobel operator.
7. A novel optical path intelligent adjustment system for a fluorescent integrated 4K nasal skull base mirror, used to implement the optical path intelligent adjustment method for a novel fluorescent integrated 4K nasal skull base mirror as described in any one of claims 1 to 6, characterized in that: include: Equipment layer, data storage layer and control layer; the equipment layer includes: a nasal skull base mirror light source, a nasal skull base mirror lens, and a display; the nasal skull base mirror light source is used to provide lighting in a dark environment of a fluorescent nasal skull base mirror surgery; the nasal skull base mirror lens is used to collect a fluorescent image of the skull base under a fluorescent nasal skull base mirror; the display is used to magnify and display the fluorescent image of the skull base under a fluorescent nasal skull base mirror; the data storage layer is used to store data generated during the operation of the system; The control layer includes: a fluorescent area separation module, an evaluation function construction module, a control parameter output module and a nasal skull base mirror control and adjustment module; the fluorescent area separation module is used to collect the skull base fluorescent image under the fluorescent nasal skull base mirror, and separate the target area and the background in the skull base fluorescent image; the evaluation function construction module is used to obtain the fluorescent image contrast between the target area and the background in the skull base fluorescent image, and construct an optical path evaluation index and an image clarity evaluation index; the control parameter output module is used to construct a particle swarm optical path adjustment algorithm through the optical path evaluation index and the clarity evaluation index, and obtain control parameters according to the particle swarm optical path adjustment algorithm and the fluorescent image contrast; the nasal skull base mirror control and adjustment module is used to intelligently adjust the optical path of the nasal skull base mirror according to the control parameters.
