Disclosure of Invention
The embodiment of the invention provides an irradiation method, an irradiation device and a storage medium suitable for a fluorescence image navigation operation, which can control the irradiation time of each light path according to the actual conditions of tumors, focuses and tissues, so that the fluorescence region of the focus is more accurately collected.
In a first aspect of the embodiments of the present invention, an irradiation method suitable for a fluoroscopic image guided surgery is provided, including:
presetting a test interval time period, and controlling different irradiation equipment to irradiate the focus in sequence based on the test interval time period;
acquiring a plurality of test images obtained by different illumination devices in a test interval time period, wherein the plurality of test images comprise an illumination test image and a plurality of fluorescence test images;
determining the fluorescence area of a fluorescence area in each fluorescence test image, and determining first irradiation duration of different irradiation equipment based on the fluorescence area;
different irradiation equipment irradiates the focus based on different first irradiation duration to obtain an illumination working image and a plurality of first-stage fluorescence images, and the illumination working image and the plurality of first-stage fluorescence images are fused to obtain a composite image.
Optionally, in one possible implementation manner of the first aspect, determining a fluorescence area of a fluorescence region in each fluorescence test image, and determining the first illumination duration of different illumination apparatuses based on the fluorescence area includes:
acquiring the number x of pixel points in the illumination test image and the number k of luminous pixel points in the y fluorescent test imagey1;
Calculating the first irradiation duration t of the irradiation equipment corresponding to the y-th fluorescence test image by the following formulay1,
Wherein k isiThe number of luminous pixel points in the ith fluorescence test image, c the number of all fluorescence test images, p the conversion coefficient, tmAs a reference irradiation time period, tαIs the minimum irradiation duration.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
setting a secondary acquisition time point, and acquiring a plurality of first-stage fluorescence images of the secondary acquisition time point closest to the moment;
acquiring the number k of luminous pixel points in the y-th first-stage fluorescence image at the time closest to the secondary acquisition time pointy2;
Based on the number k of luminous pixel points in the y-th fluorescence test imagey1And the number k of luminous pixel points in the first-stage fluorescence imagey2And calculating a second irradiation duration corresponding to the acquisition of the second-stage fluorescence image.
Optionally, in a possible implementation manner of the first aspect, if k is determinedy1Is not equal to ky2;
Then, the second illumination time t of the illumination device corresponding to the y-th fluorescence test image is calculated by the following formulay2,
Wherein A is a constant greater than 1, and s is an attenuation conversion coefficient.
Optionally, in one possible implementation manner of the first aspect, the determining the fluorescence area of the fluorescence area in each fluorescence test image includes:
presetting a light emitting threshold value of each fluorescence test image, and carrying out binarization processing on each fluorescence test image based on the light emitting threshold value;
and extracting the area of the fluorescence area in the fluorescence test image after the binarization processing.
Optionally, in a possible implementation manner of the first aspect, the extracting the area of the fluorescence region in the fluorescence test image after the binarization processing includes:
displaying the pixel points within the luminescence threshold value in a form of 1 in the fluorescence test image, and displaying the pixel points outside the luminescence threshold value in a form of 0 in the fluorescence test image;
and acquiring the area of the pixel point which is 1 in all the fluorescence test images.
Optionally, in one possible implementation manner of the first aspect, the fusing the illumination working image and the plurality of first-stage fluorescence images to obtain a composite image includes:
registering the illumination working image and the plurality of first-stage fluorescent images so as to enable the coordinates of each pixel point in the illumination working image and the plurality of first-stage fluorescent images to correspond to each other;
respectively extracting regions of pixel points which are 1 in the first-stage fluorescence image, fusing the regions of the pixel points which are 1 in different first fluorescence images with the illumination working image, and displaying the fused regions in the illumination working image with preset pixel values, wherein the preset pixel values corresponding to the regions of the pixel points which are 1 in different first fluorescence images are different;
and outputting and displaying the generated composite image after judging that all the first-stage fluorescence images are respectively fused with the illumination working image.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
judging whether a repeated fusion area exists in the composite image, wherein the repeated fusion area is an area which is respectively fused with different first-stage fluorescent images in the illumination working image;
and performing label display on the repeated fusion area, wherein the label display at least comprises the information of each fused first-stage fluorescence image.
In a second aspect of the embodiments of the present invention, there is provided an irradiation device suitable for fluoroscopic image guided surgery, including:
the device comprises a setting module, a control module and a control module, wherein the setting module is used for presetting a test interval time period and controlling different irradiation equipment to irradiate the focus in sequence based on the test interval time period;
the system comprises an obtaining module, a processing module and a control module, wherein the obtaining module is used for obtaining a plurality of test images obtained by different irradiation equipment in a test interval time period, and the plurality of test images comprise an illumination test image and a plurality of fluorescence test images;
the determination module is used for determining the fluorescence area of the fluorescence area in each fluorescence test image and determining first illumination duration of different illumination devices based on the fluorescence area;
and the fusion module is used for enabling different irradiation equipment to irradiate the focus based on different first irradiation durations to obtain an illumination working image and a plurality of first-stage fluorescence images, and fusing the illumination working image and the plurality of first-stage fluorescence images to obtain a composite image.
In a third aspect of the embodiments of the present invention, a readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, is adapted to carry out the method according to the first aspect of the present invention and various possible designs of the first aspect of the present invention.
The irradiation method, the irradiation device and the storage medium suitable for the fluorescence image navigation operation provided by the invention can be used for testing an actual working scene before synthesizing an image, obtaining the first irradiation duration of irradiation equipment of a corresponding type according to the fluorescence area of a fluorescence area in fluorescence test images of different types and types, respectively controlling the irradiation equipment of the corresponding type to irradiate through a plurality of first irradiation durations, and respectively collecting the fluorescence areas of different types to obtain a first-stage fluorescence image.
According to the invention, when the first irradiation time lengths of different irradiation devices are calculated, the number of the pixel points in the illumination test image and the number of the pixel points in the other fluorescence test images are fully considered, and the first irradiation time length of each irradiation device is determined according to the number relation. The first irradiation duration of each irradiation device is different under different scenes, and the first irradiation duration is longer when the fluorescence area is larger and the fluorescence area is larger, so that the matching degree of the fluorescence area and the actual form of human tissue in the obtained composite image is higher.
According to the method, when the area of the pixel point is determined and the synthetic image is generated, binarization processing is carried out on the first-stage fluorescence image according to the light emitting threshold values of different fluorescence test images, so that the image processing amount and the calculated amount are reduced when the area of the pixel point is calculated and the synthetic image is generated, the problem of inaccurate identification of a fluorescence region caused by the light emitting attenuation of the targeted medicine can be solved by setting the light emitting threshold value, the accuracy of determining the area of the pixel point and generating the synthetic image is improved, and the image data processing amount is reduced.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in the present invention, "a plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, for example, and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that all three of A, B, C comprise, "comprises A, B or C" means that one of A, B, C comprises, "comprises A, B and/or C" means that any 1 or any 2 or 3 of A, B, C comprises.
It should be understood that in the present invention, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, and B can be determined from a. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
The invention provides an irradiation method suitable for a fluorescence image navigation operation, as shown in a flow chart of fig. 1, comprising the following steps:
step S110, presetting a test interval time period, and controlling different irradiation devices to irradiate the focus in sequence based on the test interval time period. The test interval time period may be 15 ms, 20 ms, 50 ms, or the like, and may be selected according to the form of the lesion, where the test interval time period may be longer if the form of the lesion is large, and may be smaller if the form of the lesion is small, and may reflect the irradiation time of each irradiation device on the lesion.
Step S120, obtaining a plurality of test images obtained by different illumination devices in a test interval time period, where the plurality of test images include an illumination test image and a plurality of fluorescence test images. The fluoroscopic image navigation apparatus includes a plurality of irradiation devices, for example, an illumination device for irradiating visible light, and a radiation irradiation device for irradiating light rays of different wavelengths.
Step S130, determining the fluorescence area of the fluorescence area in each fluorescence test image, and determining the first irradiation duration of different irradiation devices based on the fluorescence area.
Wherein the step S130 includes, in step S,
acquiring the number x of pixel points in the illumination test image and the number k of luminous pixel points in the y fluorescent test imagey1. In the actual operation process, a plurality of images are required to be acquired to obtain a composite image, the acquired images comprise an illumination image and a fluorescence image, and different naming modes are respectively adopted for distinguishing according to the functions of the acquired illumination image and the fluorescence image and different acquisition time periods.
The first illumination duration of different illumination devices is calculated, the method mainly aims to distinguish the different illumination devices, and control the different illumination devices for different illumination durations according to the distinguishing result, wherein the first illumination duration of the illumination device corresponding to the illumination test image can be preset.
The y-th fluorescence test was calculated by the following formulaFirst irradiation duration t of irradiation equipment corresponding to imagey1,
Wherein k isiThe number of luminous pixel points in the ith fluorescence test image, c the number of all fluorescence test images, p the conversion coefficient, tmAs a reference irradiation time period, tαIs the minimum irradiation duration.
When calculating the first irradiation duration, the invention firstly determines the number k of luminous pixel points in the fluorescence test image
y1Number of pixels emitting light on average
Performing comparison only when
Then, the reference irradiation duration is adjusted to be high, and when the reference irradiation duration is adjusted to be high, the reference irradiation duration is adjusted to be high
In time, t will be guaranteed
y1=t
αI.e. the number k of luminous pixel points
y1Smaller, the corresponding first irradiation duration can be ensured, and through the above mode, the effect of enhancing the irradiation of the fluorescent image with more luminous pixel points is realized.
According to the invention, when the first irradiation time lengths of different irradiation devices are calculated, the number of the pixel points in the illumination test image and the number of the pixel points in the other fluorescence test images are fully considered, and the first irradiation time length of each irradiation device is determined according to the number relation. The first irradiation duration of each irradiation device is different under different scenes, and the first irradiation duration is longer when the fluorescence area is larger and the fluorescence area is larger, so that the matching degree of the fluorescence area and the actual form of human tissue in the obtained composite image is higher.
The invention also includes:
setting a secondary acquisition time point, and acquiring a plurality of first-stage fluorescence images of the secondary acquisition time point closest to the moment. The secondary acquisition time point can be set according to the operation plan and can be a plurality of equal values of the time of the operation plan. For example, if a procedure is planned to be 60 minutes, the secondary collection time point may be the fifth minute, the tenth minute, the tertiary collection time point may be the tenth minute, the twentieth minute, and so on. And acquiring a first-stage fluorescence image closest to the time at the second acquisition time point, wherein the current surgical condition can be reflected by the first-stage fluorescence image at the time, whether the focus is cut or not is judged, and if the focus is cut, the number of fluorescence areas, fluorescence areas and fluorescence pixels in one first-stage fluorescence image is reduced.
Acquiring the number k of luminous pixel points in the y-th first-stage fluorescence image at the time closest to the secondary acquisition time pointy2. The invention can carry out the number k of luminous pixel points in the first-stage fluorescence image acquired at the secondary acquisition time pointy2And (6) carrying out statistics.
Based on the number k of luminous pixel points in the y-th fluorescence test imagey1And the number k of luminous pixel points in the first-stage fluorescence imagey2And calculating a second irradiation duration corresponding to the acquisition of the second-stage fluorescence image. Through ky2And k isy1The quantitative relation between the two parts can reflect whether the part of the focus in the first-stage fluorescence image is cut and processed, if the part of the focus in the first-stage fluorescence image is cut and processed, the first irradiation duration of the irradiation equipment corresponding to the fluorescence image can be adjusted, so that the irradiation equipment can be dynamically adjusted according to the condition of the focus.
Wherein, if yes, determine ky1Is not equal to ky2;
Then, the second illumination time t of the illumination device corresponding to the y-th fluorescence test image is calculated by the following formulay2,
Wherein A is a constant greater than 1, and s is an attenuation conversion coefficient.
The invention will be based on ky1And ky2To determine the second irradiation period ty2Through a second irradiation period ty2To guide the irradiation of the irradiation device in the second stage of the operation.
In a possible scenario, a doctor needs to excise two lesion parts and tissue parts with different fluorescence, and then the corresponding fluorescence part does not exist in the corresponding first-stage fluorescence image or second-stage fluorescence image after the lesion part and the tissue part with the first fluorescence are excised, and at this time, the first irradiation duration or the second irradiation duration of the corresponding irradiation equipment needs to be adjusted, and at this time, ty2May be equal to tα. Through the above manner, each irradiation apparatus is dynamically adjusted.
Step S140, different irradiation devices irradiate the focus based on different first irradiation durations to obtain an illumination working image and a plurality of first-stage fluorescence images, and the illumination working image and the plurality of first-stage fluorescence images are fused to obtain a composite image.
Wherein, the different fluorescence areas represent the forms of the corresponding tissues, if the fluorescence area in a first-stage fluorescence image is smaller, the actual volumes of the tissues and the lesions are proved to be smaller; conversely, if the fluorescence area in a first-stage fluorescence image is large, the actual volume of the tissue, lesion, is demonstrated to be large.
According to the technical scheme provided by the invention, an actual working scene can be tested before images are synthesized, the first irradiation duration of the irradiation equipment of the corresponding type is obtained according to the fluorescence area of the fluorescence area in the fluorescence test images of different types and types, the irradiation of the irradiation equipment of the corresponding type is respectively controlled through a plurality of first irradiation durations, and the fluorescence areas of different types are respectively collected to obtain the fluorescence images of the first stage.
In one possible embodiment, determining the fluorescence area of the fluorescence area in each fluorescence test image comprises:
and presetting a light emitting threshold value of each fluorescence test image, and carrying out binarization processing on each fluorescence test image based on the light emitting threshold value. For example, if the fluorescence in a fluorescence test image is green, the corresponding threshold value is the RGB value corresponding to green, and green includes dark green, light green, and the like, so the invention uses the threshold value to respectively include colors in the form of dark green, light green, and the like. In an actual surgical procedure, the color of the fluorescent portion may shift slightly because the fluorescent stain may be metabolized by the cells over time, causing the color of the fluorescent portion to change from light to dark and then light. According to the invention, the offset part can be covered by setting the luminous threshold value, so that the invention is more accurate in determining the form of the focus.
And extracting the area of the fluorescence area in the fluorescence test image after the binarization processing. The area statistics of the binaryzation fluorescence area is convenient by the method, the calculated amount is reduced, the fluorescence pixel point statistics can be realized by judging two possibilities in the pixel points, the data processing amount is reduced, and the data processing efficiency is improved.
In one possible embodiment, the extracting the area of the fluorescence region in the fluorescence test image after the binarization processing comprises:
and displaying the pixel points within the light-emitting threshold value in a form of 1 in the fluorescence test image, and displaying the pixel points outside the light-emitting threshold value in a form of 0 in the fluorescence test image. In the invention, the fluorescence test image after binaryzation is displayed and displayed in a specific form, so that the area statistics of a computer system is facilitated.
And acquiring the area of the pixel point which is 1 in all the fluorescence test images. The pixel point of 1 can be considered as a fluorescence region, and as shown below, 1 fluorescence test image can be displayed as follows.
In one possible embodiment, step S140 includes:
and registering the illumination working image and the plurality of first-stage fluorescent images so as to enable the coordinates of each pixel point in the illumination working image and the plurality of first-stage fluorescent images to correspond. The present invention first performs registration so that the illumination working image and the plurality of first-stage fluorograms are matched when combined. The registration belongs to the conventional technical scheme, and the invention is not repeated.
Respectively extracting regions of pixel points which are 1 in the first-stage fluorescence image, fusing the regions of the pixel points which are 1 in different first fluorescence images with the illumination working image, and displaying the fused regions in the illumination working image with preset pixel values, wherein the preset pixel values corresponding to the regions of the pixel points which are 1 in different first fluorescence images are different.
When a plurality of images are fused, the area of the pixel point which is 1 in the first-stage fluorescent image is extracted, the illumination working image is used as a substrate, and the area of the pixel point which is 1 in each first-stage fluorescent image is respectively added to the illumination working image to obtain a corresponding fused image.
And outputting and displaying the generated composite image after judging that all the first-stage fluorescence images are respectively fused with the illumination working image.
When the image is fused, the invention only collects the region of the pixel point which is 1 in the first-stage fluorescence image, so that the data processing efficiency is higher, the data processing amount is less and the image fusion speed is higher during the image fusion.
The invention also includes:
and judging whether a repeated fusion area exists in the composite image, wherein the repeated fusion area is respectively fused with different first-stage fluorescence images in the illumination working image. In the operation process, different fluorescence in the same region is likely to occur, and the condition of the focus is complicated at the moment, so the invention needs to specifically determine and lock the region.
And performing label display on the repeated fusion area, wherein the label display at least comprises the information of each fused first-stage fluorescence image. After determining that the repeated fusion area exists, the area is marked and displayed, so that medical personnel can know the fluorescence information in the repeated fusion area according to the marked and displayed area.
The technical scheme of the invention provides an irradiation device suitable for a fluorescence image navigation operation, as shown in a schematic structural diagram of fig. 2, the irradiation device comprises:
the device comprises a setting module, a control module and a control module, wherein the setting module is used for presetting a test interval time period and controlling different irradiation equipment to irradiate the focus in sequence based on the test interval time period;
the system comprises an obtaining module, a processing module and a control module, wherein the obtaining module is used for obtaining a plurality of test images obtained by different irradiation equipment in a test interval time period, and the plurality of test images comprise an illumination test image and a plurality of fluorescence test images;
the determination module is used for determining the fluorescence area of the fluorescence area in each fluorescence test image and determining first illumination duration of different illumination devices based on the fluorescence area;
and the fusion module is used for enabling different irradiation equipment to irradiate the focus based on different first irradiation durations to obtain an illumination working image and a plurality of first-stage fluorescence images, and fusing the illumination working image and the plurality of first-stage fluorescence images to obtain a composite image.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the terminal or the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.