WO2016206093A1 - Method and apparatus for fusion display of cerebral cortex electrode and magnetic resonance images - Google Patents

Method and apparatus for fusion display of cerebral cortex electrode and magnetic resonance images Download PDF

Info

Publication number
WO2016206093A1
WO2016206093A1 PCT/CN2015/082501 CN2015082501W WO2016206093A1 WO 2016206093 A1 WO2016206093 A1 WO 2016206093A1 CN 2015082501 W CN2015082501 W CN 2015082501W WO 2016206093 A1 WO2016206093 A1 WO 2016206093A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
electrode
mri
implantation
scale
Prior art date
Application number
PCT/CN2015/082501
Other languages
French (fr)
Chinese (zh)
Inventor
汤洁
李卓
任乐枫
胡楠
谢菲
Original Assignee
深圳市美德医疗电子技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市美德医疗电子技术有限公司 filed Critical 深圳市美德医疗电子技术有限公司
Priority to PCT/CN2015/082501 priority Critical patent/WO2016206093A1/en
Priority to CN201580003336.6A priority patent/CN105849777B/en
Publication of WO2016206093A1 publication Critical patent/WO2016206093A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • G06T3/14
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10072Tomographic images
    • G06T2207/10081Computed x-ray tomography [CT]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10072Tomographic images
    • G06T2207/10088Magnetic resonance imaging [MRI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30016Brain
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30088Skin; Dermal

Definitions

  • the invention relates to the field of information fusion, in particular to a method and a device for fused display of a cerebral cortex electrode and a magnetic resonance image.
  • intracranial electrodes have been identified as the gold standard for localization of lesions.
  • the intracranial electrodes can directly record the brain electrical activity of the cerebral cortex and internal brain tissue, and can detect abnormal cortical discharge within 1 cm, with clear graphics and high sensitivity.
  • intracranial electrode EEG monitoring is a safe and reliable method of localization.
  • CT scan can be used to obtain the positional distribution information of the electrode in the brain.
  • CT scans are not sensitive to the inner cortical tissue of the brain.
  • CT scans are not able to obtain information about the inner cortex of the brain, which is not conducive to obtaining the position information of the electrodes.
  • MRI scans are the best way to obtain information on the inner cortical tissue of the brain, but since the implanted electrodes are usually metal electrodes, MRI scans cannot be performed after implantation.
  • the technical problem to be solved by the present invention is to provide a method and apparatus for fused display of a cerebral cortex electrode and a magnetic resonance image capable of acquiring position information of an electrode in view of the above-mentioned drawbacks of the prior art which are disadvantageous for acquiring position information of the electrode.
  • the technical solution adopted by the present invention to solve the technical problem thereof is: constructing a method for fusion display of a cerebral cortex electrode and a magnetic resonance image, comprising the following steps:
  • the step B) further comprises:
  • the second scale uses the second scale to rotate and translate the partial image pixels in the MRI image after the first scale adjustment and the partial image pixels in the post-implant CT image;
  • the first scale includes more pixels than the first scale The number of pixels included in the second scale;
  • step B4 determining whether the similarity between the MRI image after the second scale adjustment and the position pixel of the post-implant CT image reaches a second similarity, and if so, ending the registration process; otherwise, returning to step B3); The degree is greater than the first similarity.
  • the step C) further includes:
  • the method further includes:
  • the method further includes:
  • the step B0) further includes:
  • the first scale includes the number of pixels larger than The number of pixels included in the second scale
  • step B04 determining whether the similarity between the MRI image after the second scale adjustment and the position pixel corresponding to the pre-implant CT image reaches a second similarity, and if so, ending the registration process; otherwise, returning to step B03); The degree is greater than the first similarity.
  • the registered CT image includes a pre-implantation CT image after registration and a post-implantation CT image after registration
  • Step C) further includes:
  • the step D) further comprises:
  • step D3 expanding the radius, and determining whether there is a point in the enlarged area whose pixel value falls within the set interval, and if so, incorporating it into the area where the seed point is located, and performing step D4 ); otherwise, the region where the seed point is located is used as cerebral cortical tissue image information;
  • the step E) further includes:
  • the size of the first scale is eight pixels
  • the size of the second scale is one pixel
  • the MRI image before implantation
  • Both the CT image and the post-implantation CT image are image files in DICOM format, and the required format is a DICOM file, a picture file, or a video file.
  • the present invention also relates to an apparatus for implementing a method for fusion display of a cerebral cortex electrode and a magnetic resonance image, comprising:
  • Registration unit used to register the MRI image and the post-implantation CT image in the same coordinate space
  • An electrode information extracting unit configured to extract electrode image information from the registered CT image
  • Cerebral cortex information extraction unit for extracting cerebral cortical tissue image information from the registered MRI image;
  • the information fusion unit is configured to spatially fuse the electrode image information and the cerebral cortex tissue image information, and display the spatially fused information through a three-dimensional visualization method;
  • Display effect adjustment unit used to adjust the effect and angle of the 3D visual display, and convert the adjusted result into the required format output for saving.
  • the registration unit further includes:
  • a coordinate conversion module configured to convert the MRI image and the post-implant CT image into the same coordinate system, and move the physical center of the MRI image to the same point of the physical center of the post-implant CT image;
  • Post-implantation rotational translation alignment module for respectively rotating, translating and comparing partial image pixels in the MRI image and partial image pixels in the post-implant CT image using the first scale until the MRI image The similarity between the contour of the CT image and the contour of the post-implant CT image reaches a first similarity
  • Post-implantation rotation translation module for rotating and translating partial image pixels in the MRI image after the first scale adjustment and partial image pixels in the post-implant CT image using the second scale; The number of pixels included is greater than the number of pixels included in the second scale;
  • Post-implantation similarity judgment module for judging whether the similarity between the MRI image adjusted by the second scale and the pixel corresponding to the post-implantation CT image reaches the second similarity, and if so, ending the registration process; otherwise, proceeding The adjustment of the second scale; the second similarity is greater than the first similarity.
  • the electrode information extracting unit further includes:
  • Grayscale threshold setting module configured to set a grayscale threshold range of the registered CT image, the set grayscale threshold range including the electrode image;
  • Electrode image extraction module an image for extracting an image gray scale within a set grayscale threshold range as electrode image information.
  • the device further includes:
  • Pre-implantation registration unit for registering the MRI image and the pre-implantation CT image in the same coordinate space.
  • the pre-implantation registration unit further comprises:
  • Pre-implantation coordinate conversion module for converting the MRI image and the pre-implant CT image into the same coordinate system, and moving the physical center of the MRI image to the same point as the physical center of the pre-implant CT image ;
  • Pre-implantation rotational translation alignment module for respectively rotating, translating and comparing partial image pixels in the MRI image and partial image pixels in the pre-implant CT image using the first scale until the MRI image The similarity between the contour of the CT image and the contour of the pre-implant CT image reaches a first similarity;
  • a pre-implantation rotation translation module for rotating and translating a partial image pixel in the first scale-adjusted MRI image and a partial image pixel in the pre-implant CT image using a second scale;
  • the number of pixels included is greater than the number of pixels included in the second scale;
  • the pre-implantation similarity judgment module is configured to determine whether the similarity between the MRI image adjusted by the second scale and the pixel corresponding to the pre-implant CT image reaches a second similarity, and if so, the registration process ends; otherwise, return to continue Performing a second scale adjustment; the second similarity is greater than the first similarity.
  • the registered CT image includes a pre-implantation CT image after registration and a post-implantation CT image after registration
  • the electrode information extraction unit further includes:
  • the CT image subtraction module the post-implantation CT image after the registration is subtracted from the pre-implantation CT image, and the portion where the gradation difference value is not 0 is the electrode image information.
  • the cerebral cortex information extracting unit further comprises:
  • Seed point selection module for arbitrarily selecting a seed point from the registered MRI image
  • a seed point selection module for setting an interval: for selecting a point whose pixel value falls within a set interval in an area centered on the seed point and having a radius of a first set value, and incorporating the The area where the seed point is located;
  • the pixel value judgment module is configured to continue the determination of the pixel value in the set interval.
  • the information fusion unit further includes:
  • a data type conversion module configured to convert a data type of the electrode image information and a data type of the cerebral cortex tissue image information into the same data type;
  • Gray value mapping module for mapping different gray values of each pixel in the electrode image and the cerebral cortex tissue image into different colors and transparency through the set color mapping table, respectively adjusting the color and transparency thereof;
  • Image display module used to display the fused image by face drawing or volume drawing.
  • the first size is eight pixels
  • the second size is one pixel
  • the MRI image, the pre-implant CT image, and the post-implant CT image are both An image file in DICOM format
  • the required format is a DICOM file, a picture file, or a video file.
  • the method and device for realizing the fusion display of the cerebral cortex electrode and the magnetic resonance image of the present invention have the following beneficial effects: the MRI image obtained by MRI scan before the patient is implanted into the intracranial electrode and the CT after the patient is implanted with the intracranial electrode.
  • the scanned CT image is scanned, and then the CT image is registered with the MRI image, and then the extracted electrode information is fused and displayed on the MRI image, so that the brain tissue information can be seen and the position of the electrode can be seen at the same time. Information, so it can get the position information of the electrode.
  • FIG. 1 is a flow chart of an embodiment of a method and apparatus for fusion display of a cerebral cortex electrode and a magnetic resonance image of the present invention
  • FIG. 2 is a specific flowchart of registering an MRI image and an implanted CT image in the same coordinate space in the embodiment
  • FIG. 3 is a specific flowchart of a case where electrode image information is extracted from a registered CT image in the embodiment
  • FIG. 4 is a specific flowchart of registering an MRI image and a pre-implant CT image in the same coordinate space in the embodiment
  • FIG. 5 is a specific flowchart of extracting cerebral cortex tissue image information from the registered MRI image in the embodiment
  • FIG. 6 is a specific flowchart of spatially merging electrode image information and cerebral cortex tissue image information in the embodiment, and displaying the spatially fused information through a three-dimensional visualization method;
  • Figure 7 is a schematic view showing the structure of the apparatus in the embodiment.
  • FIG. 1 a flow chart of the method for displaying the cerebral cortex electrode and the magnetic resonance image is shown in FIG. 1 .
  • the method for displaying the cerebral cortex electrode and the magnetic resonance image fusion comprises the following steps:
  • Step S01 takes the MRI image obtained by MRI scan before the patient implants the intracranial electrode and the post-implant CT image obtained by CT scan after the patient implants the intracranial electrode: in this step, the patient is implanted before the intracranial electrode is implanted.
  • the above MRI image and post-implantation CT image are both image files in DICOM format.
  • Step S02 registers the MRI image and the post-implantation CT image in the same coordinate space: in this step, the MRI image and the post-implantation CT image are registered by calling the three-dimensional spatial data registration algorithm, and the registered MRI is performed.
  • the image and the CT image data after implantation are in the same coordinate space, which facilitates data fusion.
  • a software system is provided, which is a fusion display system of a cerebral cortex electrode and a magnetic resonance image. Firstly, the MRI image and the post-implantation CT image are copied to the host where the cerebral cortex electrode and the magnetic resonance image fusion display system are located, and the MRI image and the post-implantation CT image are imported through the software of the cerebral cortex electrode and the magnetic resonance image fusion display system. The data is then registered by the 3D spatial data registration algorithm to register the MRI image and the post-implant CT image in the same coordinate space. For details on how to register, a detailed description will be given later.
  • Step S03 extracts electrode image information from the registered CT image: in this step, extracting electrode image information from the registered CT image, specifically extracting electrode image information from the registered CT image by using an electrode extraction algorithm .
  • Step S04 extracting cerebral cortical tissue image information from the registered MRI image:
  • the data of the MRI image includes not only the information of the cerebral cortex, but also other parts of the skull, the neck, etc., and this part of the information has an adverse effect on the position of the doctor to observe the electrode.
  • the cerebral cortex tissue image information is extracted from the registered MRI image, specifically, the image segmentation algorithm is used to extract the information of the cerebral cortex tissue from the registered MRI image, and the other useless information is removed.
  • Step S05 The electrode image information and the cerebral cortex tissue image information are spatially fused, and the spatially fused information is displayed by a three-dimensional visualization method: in this step, the electrode image information and the cerebral cortex tissue image information are spatially fused, and the spatial fusion is performed. The subsequent information is displayed by a three-dimensional visualization method.
  • Step S06 Adjust the effect and angle of the 3D visualization display, and adjust the adjusted result to the desired format.
  • Output preservation In this step, the cerebral cortex tissue and electrode position can be visually seen in the cerebral cortex electrode and magnetic resonance image fusion display system. Related information, you can also observe the brain from different directions by mouse drag, you can adjust the effect and angle of the 3D visual display, and adjust the results to convert to the desired format output save. It is worth mentioning that the above required format is a DICOM file, a picture file or a video file, and the results of different formats can be used for various purposes. Since the electrode information of the extraction process is fused and displayed on the MRI image, the brain tissue information can be seen and the position information of the electrode can be seen at the same time, so that the position information of the electrode can be obtained.
  • the above step S02 can be further refined, and the refined flowchart is as shown in FIG. 2 .
  • the above step S02 further includes:
  • Step S21 Convert the MRI image and the post-implant CT image to the same coordinate system, and move the physical center of the MRI image and the physical center of the post-implant CT image to the same point: registration is for MRI images and post-implantation CT The pixels at the corresponding positions of the image are spatially consistent. Since the MRI image and the post-implantation CT image are from different devices, the rates are also different. In this embodiment, a multi-resolution registration strategy is adopted. In this step, the MRI image and the post-implant CT image are converted to the same coordinate system, and the physical center of the MRI image and the physical center of the post-implant CT image are moved to the same point, so that the two images will substantially coincide. This will reduce the number of moves and the number of rotations.
  • Step S22 Rotating, translating, and comparing partial image pixels in the MRI image and partial image pixels in the post-implant CT image using the first scale until the contour of the MRI image is similar to the contour of the CT image after implantation.
  • a similarity degree in this step, the first image (rough scale) is used to rotate, translate and compare partial image pixels in the MRI image and partial image pixels in the post-implant CT image, respectively, until the contour of the MRI image
  • the contour of the CT image after implantation is substantially coincident, that is, the contour of the MRI image and the contour of the CT image after implantation satisfy the set first similarity.
  • the first similarity is set to be 90%.
  • the first similarity may also be other values.
  • the size of the first size is eight pixels.
  • the size of the first size may be adjusted to other values, and the specific adjustment may be based on specific The situation is fixed.
  • Step S23 uses the second scale to rotate and translate the partial image pixels in the MRI image after the first scale adjustment and the partial image pixels in the post-implant CT image: in this step, the second scale is used first. Partial image pixels in the scale-adjusted MRI image and partial image pixels in the post-implantation CT image are rotated and translated again, specifically, using a second scale (precise scale), and using the result of the previous layer Its parameters are initialized, and the above rotation and translation processes are iterated until the most accurate scale is reached.
  • a second scale precision scale
  • the number of pixels included in the first scale is greater than the number of pixels included in the second scale; the size of the second scale is one pixel, of course, in some cases of the first embodiment, The size of the second scale is adjusted according to the specific situation.
  • Step S24 determines whether the similarity between the MRI image after the second scale adjustment and the position pixel of the post-implant CT image reaches the second similarity: in this step, the MRI image after the second scale adjustment and the CT after implantation are determined. Whether the similarity of the image corresponding to the position pixel reaches the second similarity. Specifically, the mutual information similarity comparison algorithm is used to determine whether the similarity between the MRI image adjusted by the second scale and the pixel corresponding to the post-implant CT image reaches the second degree. Similarity, if the result of the determination is YES, step S25 is performed; otherwise, step S23 is returned. It is worth mentioning that in the first embodiment, the second similarity is greater than the first similarity. For example, the second similarity may be set to 99.8%. Of course, in some cases of the embodiment, the second similarity may also be set to other values.
  • Step S25 Ending the registration process: If the result of the above step S24 is YES, the present step is performed. In this step, the registration process of the MRI image and the post-implantation CT image is ended. This method from coarse to fine, looking at the whole on a large scale, and looking at the details on a small scale can greatly improve the success rate of registration.
  • the above step S03 can be further refined, and the refined flowchart is as shown in FIG. 3.
  • the above step S03 further includes:
  • Step S31 sets a grayscale threshold range of the registered CT image, and the set grayscale threshold range includes the electrode image: the threshold segmentation algorithm is suitable for the grayscale of the electrode image to be distinct from the grayscale of the soft tissue and the flesh. happening.
  • the grayscale threshold range of the registered CT image is set, and the set grayscale threshold range includes the electrode image.
  • the registered CT image herein referred to A set grayscale threshold range is displayed in the post-implantation CT image after registration.
  • Step S32 The image whose image gray scale falls within the set grayscale threshold value is extracted as the electrode image information: in this step, the image whose image grayscale falls within the set grayscale threshold value is extracted as the electrode image information.
  • the set grayscale threshold range may be adjusted to an appropriate range in the vicinity of the set grayscale threshold range according to a specific situation, that is, adjusted to a required grayscale range, and the grayscale of the image is dropped.
  • the image in the desired gray scale range is extracted as the electrode image information. It is worth mentioning that most of the non-electrode images can be removed by setting a suitable gray scale range and including most of the electrode images. The electrode is left so that the electrode image information can be obtained.
  • the method for displaying the cerebral cortex electrode and the magnetic resonance image needs to include some steps. As shown in FIG. 1 , before the step S01, the method further includes:
  • Step S00 Pre-implantation CT image obtained by CT scan before the patient is implanted into the intracranial electrode: In this step, the pre-implantation CT image obtained by CT scan before the patient is implanted into the intracranial electrode is taken, and then the CT image before implantation is taken. Introduced into the above cerebral cortex electrode with a magnetic resonance image fusion display system.
  • the pre-implantation CT image is an image file in DICOM format.
  • the method further includes:
  • Step S20 The MRI image and the pre-implantation CT image are registered in the same coordinate space: in this step, the MRI image and the pre-implantation CT image are registered in the same coordinate space. A detailed description of how to register will follow.
  • the above step S20 can be further refined, and the refined flowchart is as shown in FIG. 4 .
  • the above step S20 further includes:
  • Step S201 converts the MRI image and the pre-implant CT image into the same coordinate system, and moves the physical center of the MRI image and the physical center of the pre-implant CT image to the same point: in this step, the registration is to make the MRI The pixels in the position corresponding to the image and the pre-implant CT image are spatially consistent. Since the MRI image and the pre-implant CT image are from different devices, the rates are also different. In this embodiment, multi-resolution registration is adopted. Strategy. In this step, the MRI image and the pre-implant CT image are converted to the same coordinate system, and the physical center of the MRI image and the physical center of the pre-implant CT image are moved to the same point, so that the two images will substantially coincide. This will reduce the number of moves and the number of rotations.
  • Step S202 Rotating, translating, and comparing partial image pixels in the MRI image and partial image pixels in the pre-implant CT image using the first scale until the contour of the MRI image is similar to the contour of the pre-implant CT image.
  • a similarity degree in this step, the first image (rough scale) is used to rotate, translate and compare partial image pixels in the MRI image and partial image pixels in the pre-implant CT image, respectively, until the contour of the MRI image
  • the contour of the CT image before implantation is substantially coincident, that is, the contour of the MRI image and the contour of the CT image before implantation satisfy the set first similarity.
  • the size of the first size is eight pixels. Of course, in some cases of the first embodiment, the size of the first size may be adjusted to other values, and the specific adjustment may be based on specific The situation is fixed.
  • Step S203 Using a second scale, the partial image pixels in the MRI image after the first scale adjustment and the partial image pixels in the pre-implant CT image are rotated and translated again: in this step, the second scale is adjusted by the first scale. Part of the image pixels in the post-MRI image and part of the image pixels in the pre-implant CT image are rotated and translated again, specifically, using the second scale (precise scale), and using the result of the previous layer for its parameters Initialize, iterating through the above rotation and translation process until the most accurate scale is reached.
  • the second scale precision scale
  • the number of pixels included in the first scale is greater than the number of pixels included in the second scale; the size of the second scale is one pixel, of course, in some cases of the first embodiment, The size of the second scale is adjusted according to the specific situation.
  • Step S204 determining whether the similarity between the MRI image after the second scale adjustment and the position pixel corresponding to the pre-implant CT image reaches the second similarity: in this step, determining the MRI image after the second scale adjustment and the pre-implant CT Whether the similarity of the pixel corresponding to the position reaches the second similarity, and specifically, using the mutual information similarity comparison algorithm to determine whether the similarity of the pixel corresponding to the position of the first CT image and the MRI image after the second scale adjustment reaches the second similarity If the result of the determination is yes, then step S205 is performed; otherwise, the process returns to step S203. It is worth mentioning that in this embodiment, the second similarity is greater than the first similarity.
  • Step S205 ends the registration process: if the result of the above step S204 is YES, the present step is executed. In this step, the registration process for the MRI image and the pre-implant CT image is ended. That is, after registration, the CT image before implantation, the CT image after implantation, and the MRI image are in the same coordinate system, which is convenient for data fusion. This method from coarse to fine, looking at the whole on a large scale, and looking at the details on a small scale can greatly improve the success rate of registration.
  • the CT image after registration includes the pre-implantation CT image after registration and the registration.
  • the extraction steps used in the above step S03 are as follows:
  • the post-implantation CT image after registration is subtracted from the pre-implantation CT image, and the portion where the gradation difference value is not 0 is the electrode image information: this embodiment uses the subtraction segmentation algorithm to extract the electrode image information.
  • the idea of the subtraction segmentation algorithm is to subtract the two images, the pixels with the same position in the image are subtracted and the gray value is 0, and the remaining gray is not 0, which is the difference between the two images.
  • the basis of the subtractive segmentation algorithm is registration. Theoretically, the pre-implantation CT image and the post-implantation CT image are respectively registered to the same coordinate system, so that the difference between the two images is only in the presence or absence of the electrode, so the two images are The electrode can be extracted by subtraction.
  • the post-implantation CT image after registration is subtracted from the pre-implantation CT image, and the portion where the gradation difference value is not zero is the electrode image information.
  • the cerebral cortex electrode and the magnetic resonance image fusion display system combine the pre-implantation CT image and the post-implantation CT image comparison algorithm and the threshold segmentation algorithm to extract the position information of the implanted electrode. This makes it possible to extract the electrode position information better.
  • step S04 can be further refined, and the refined flowchart is as shown in FIG. 5.
  • the above step S04 further includes:
  • Step S41 Arbitrarily selecting a seed point from the registered MRI image:
  • an image segmentation algorithm is used to extract cerebral cortical tissue image information, and the image segmentation algorithm is based on a region growing algorithm, and the idea is to set a similarity pixel set. Together form the area.
  • a seed point is arbitrarily selected from the registered MRI image, and a seed point is randomly selected as a starting point for growth.
  • Step S42 selects a point whose pixel value falls within the set interval in a region centered on the seed point and whose radius is the first set value, and incorporates it into the region where the seed point is located: in this step, in the seed A point whose center is the center and whose radius is the first set value is selected from the point where the pixel value falls within the set interval, and is included in the area where the seed point is located, that is, the seed point and the seed point around the pixel point. Pixels with the same or similar properties of pixels (as judged according to some predetermined growth or similarity criteria) are merged into the region where the seed point pixels are located.
  • the first set value is set in advance by software.
  • Step S43 The radius is expanded, and it is judged whether there is a point in the enlarged area whose pixel value falls within the set interval: in this step, the radius is expanded, and it is judged whether or not the pixel value still exists in the enlarged area.
  • the point in the set interval that is, the new pixel in the region where the nano seed point pixel is located is regarded as a new seed pixel, and the above process is continued, and it is determined whether there is still a point where the pixel value falls within the set interval, if If the result of the determination is yes, then step S44 is performed; otherwise, step S45 is performed.
  • Step S44 It is included in the area where the seed point is located: if the result of the above step S43 is YES, this step is performed. In this step, it is included in the area where the seed point is located. After performing this step, the process returns to step S43.
  • Step S45 uses the region where the seed point is located as cerebral cortical tissue image information: if the result of the above-described step S43 is NO, the present step is executed.
  • the region where the seed point is located is used as image information of the cerebral cortex tissue. That is, when a pixel that does not satisfy the condition is included, such an area becomes long. That is to say, the growth criterion used by the current image segmentation algorithm is that the point pixel values in the field with a certain radius are within a certain interval, and then the points are included in the region where the seed pixel is located, and when there is no point meeting the criterion, When incorporated, the image segmentation algorithm terminates. This extracts the electrode image information and the cerebral cortex tissue image information.
  • step S05 can be further refined, and the refined flowchart is as shown in FIG. 6.
  • the above step S05 further includes:
  • Step S51 Converting the data type of the electrode image information and the data type of the cerebral cortex tissue image information into the same data type: in this step, the data type of the electrode image information and the data type of the cerebral cortex tissue image information are converted into the same data type.
  • the same data type is Byte type, that is, the electrode image information and the cerebral cortex tissue image information are both converted into eight-bit data.
  • Step S52 Through the set color map, the gray values of each pixel in the electrode image and the cerebral cortex tissue image are respectively mapped into different colors and transparency, and the color and transparency are respectively adjusted: in this step, the set color is adopted.
  • the mapping table maps different gray values of each pixel in the electrode image and the cerebral cortex tissue image into different colors and transparency, respectively, and adjusts the color and transparency thereof. It is worth mentioning that in the process of fusion, the brain tissue and the electrode are respectively given different colors, and finally they are displayed in the same coordinate system, so that they can adjust their color and transparency separately, which brings a very good use. Great convenience.
  • Step S53 displays the fused image by surface rendering or volume rendering: in this step, the fused image is displayed by surface rendering or volume rendering.
  • the embodiment further relates to a device for realizing the method for displaying the fusion of the cerebral cortex electrode and the magnetic resonance image, and a schematic structural view thereof is shown in FIG. 7 .
  • the apparatus comprises a registration unit 2, an electrode information extraction unit 3, a cerebral cortex information extraction unit 4, an information fusion unit 5, and a display effect adjustment unit 6; wherein the registration unit 2 is used for implanting MRI images and implants The post CT image is registered in the same coordinate space; the electrode information extracting unit 3 is configured to extract electrode image information from the registered CT image; the cerebral cortex information extracting unit 4 is configured to extract the brain from the registered MRI image.
  • Cortical tissue image information; the information fusion unit 5 is configured to spatially fuse the electrode image information and the cerebral cortex tissue image information, and display the spatially fused information through a three-dimensional visualization method; the display effect adjustment unit 6 is configured to adjust the three-dimensional visual display The effect and angle, and the adjusted result is converted to the desired format output saved.
  • the above MRI image and the post-implant CT image are both DICOM format image files.
  • the above required format is a DICOM file, a picture file or a video file, and the results of different formats can be used for various purposes. Since the electrode information of the extraction process is fused and displayed on the MRI image, the brain tissue information can be seen and the position information of the electrode can be seen at the same time, so that the position information of the electrode can be obtained.
  • the registration unit 2 further includes a coordinate conversion module 21, a post-implantation rotation translation comparison module 22, a post-implantation rotation translation module 23, and a post-implantation similarity determination module 24; wherein, the coordinate conversion module 21 uses The MRI image and the post-implantation CT image are converted to the same coordinate system, and the physical center of the MRI image is moved to the same point as the physical center of the post-implant CT image; the post-implantation rotation translation comparison module 22 is used for Rotating, translating, and comparing partial image pixels in the MRI image and partial image pixels in the post-implant CT image using the first scale until the contour of the MRI image is similar to the contour of the CT image after implantation.
  • the coordinate conversion module 21 uses The MRI image and the post-implantation CT image are converted to the same coordinate system, and the physical center of the MRI image is moved to the same point as the physical center of the post-implant CT image
  • the post-implantation rotation translation comparison module 22 is used for Rotating, translating, and comparing partial image pixels in the MRI image and partial image pixels in the
  • the post-implantation rotation translation module 23 is configured to rotate and translate a portion of the image pixels in the MRI image after the first scale adjustment and a portion of the image pixels in the post-implant CT image using the second scale;
  • the number of pixels included in the first scale is greater than the number of pixels included in the second scale;
  • the post-implant similarity judgment module 24 is configured to determine the MRI image and the implant after the second scale adjustment CT image corresponding to the pixel position of the similarity reaches a second degree of similarity, and if so, the end of the registration process; otherwise, continue adjusting the second scale; and the second similarity is larger than the first similarity.
  • the size of the first size is eight pixels
  • the size of the second size is one pixel.
  • the first size and the second size The size can be adjusted according to the specific situation.
  • the electrode information extracting unit 3 when only the pre-implant MRI scan and the post-implant CT scan are performed, the electrode information extracting unit 3 further includes a grayscale threshold setting module 31 and an electrode image extracting module 32;
  • the degree threshold setting module 31 is configured to set a grayscale threshold range of the registered CT image, the set grayscale threshold range includes the electrode image;
  • the electrode image extraction module 32 is configured to drop the image grayscale An image within the set grayscale threshold range is extracted as electrode image information. This completes the extraction of the electrode information.
  • the device further includes a pre-implantation registration unit 20, The pre-implantation registration unit 20 is used to register the MRI image and the pre-implantation CT image in the same coordinate space.
  • the pre-implantation CT image is an image file in DICOM format.
  • the pre-implantation registration unit 20 further includes a pre-implantation coordinate conversion module 201, a pre-implantation rotational translation comparison module 202, a pre-implantation rotation translation module 203, and a pre-implantation similarity determination module 204;
  • the pre-implantation coordinate conversion module 201 is configured to convert the MRI image and the pre-implant CT image into the same coordinate system, and move the physical center of the MRI image to the same point of the physical center of the pre-implant CT image;
  • the front rotation translation comparison module 202 is configured to respectively rotate, translate, and compare partial image pixels in the MRI image and partial image pixels in the pre-implant CT image using the first scale until the contour of the MRI image and the pre-implantation The similarity of the contour of the CT image reaches a first similarity;
  • the pre-implantation rotation translation module 203 is configured to use a second scale to pass a partial image pixel in the MRI image after the first scale adjustment and a portion in the pre-implant CT image The pixel of the image is rotated and translated again;
  • the CT image after registration includes the pre-implantation CT image after registration and the post-implantation CT image after registration.
  • the electrode information extracting unit 3 further includes CT image subtraction.
  • the module 31', the CT image subtraction module 31' is configured to subtract the registered pre-implant CT image after the registration of the post-implantation CT image, and the portion where the gradation difference value is not 0 is the electrode image information. .
  • the electrode information extraction unit 3 may be configured to include the grayscale threshold setting module 31 and the electrode image extraction module 32, or the electrode information extraction unit 3 may be configured to include CT image subtraction module 31'.
  • the cerebral cortex information extracting unit 4 further includes a seed point selecting module 41, a set interval intra-segment point selecting module 42, a set interval intra-pixel value judging module 43 and a pixel value judging module 44; wherein, the seed point is selected
  • the module 41 is configured to arbitrarily select one seed point from the registered MRI image
  • the seeding point selection module 42 is configured to select the pixel in the region with the seed point as the center and the radius as the first set value. The value falls within the set interval and is included in the region where the seed point is located
  • the set interval intra-pixel value judgment module 43 is configured to expand the radius and determine whether the pixel value still exists in the enlarged region.
  • the pixel value judging module 44 is configured to continue to perform the pixel in the set interval The judgment of the value. This completes the extraction of cerebral cortex information.
  • the information fusion unit 5 further includes a data type conversion module 51, a gray value mapping module 52, and an image display module 53.
  • the data type conversion module 51 is configured to use the data type of the electrode image information with the The data type of the cerebral cortex tissue image information is converted into the same data type;
  • the gray value mapping module 52 is configured to respectively map different gray values of each pixel in the electrode image and the cerebral cortical tissue image through the set color mapping table. Different colors and transparency are used to adjust their color and transparency respectively;
  • the image display module 53 is used to display the fused image by face drawing or volume rendering. In this way, you can see the information of the cerebral cortex and the position information of the electrodes to help the user.
  • the data of the pre-implant CT image, the post-implant CT image and the MRI image are taken and introduced into the cerebral cortex electrode and the magnetic resonance image fusion display system, and the cerebral cortex electrode and the magnetic resonance image fusion display system are automatically performed.
  • Processing and visualizing the results in a three-dimensional visualization by combining the information of the implanted electrodes with the information of the cerebral cortex, provides a wealth of auxiliary information, and can obtain more satisfactory results without increasing the burden. .

Abstract

A method and an apparatus for fusion display of cerebral cortex electrode and magnetic resonance images. The method comprises: extracting an MRI image obtained by MRI scanning before an intracranial electrode is implanted into a patient and a post-implantation CT image obtained by CT scanning after the intracranial electrode is implanted into the patient (S01); registering the MRI image and the post-implantation CT image under an identical coordinate space (S02); extracting electrode image information from the registered CT image (S03); extracting cerebral cortex tissue image information from the registered MRI image (S04); spatially fusing the electrode image information and the cerebral cortex tissue image information, and displaying the spatially-fused information by means of a three-dimensional visual method (S05); and adjusting a three-dimensional visual display effect and angle, converting an adjustment result into a needed format for output and storage (S06). By implementing method and apparatus for fusion display of cerebral cortex electrode and magnetic resonance images, position information about electrodes can be acquired.

Description

一种大脑皮层电极与磁共振图像融合显示的方法及装置  Method and device for fused display of cerebral cortex electrode and magnetic resonance image 技术领域Technical field
本发明涉及信息融合领域,特别涉及一种大脑皮层电极与磁共振图像融合显示的方法及装置。 The invention relates to the field of information fusion, in particular to a method and a device for fused display of a cerebral cortex electrode and a magnetic resonance image.
背景技术Background technique
外科手术是治疗某些颅脑疾病的重要手段。手术治疗的关键是病灶定位,也就是找出异常兴奋的神经元群。当前,颅内电极被认定是定位病灶的金标准,颅内电极可直接记录大脑皮质和内部脑组织的脑电活动,可探测到1cm范围内的皮质异常放电,具有图形清晰、灵敏度高等优点。对于那些无创检查不能明确病灶的病例,颅内电极脑电监测是一种安全可靠的定位方法。 Surgery is an important means of treating certain craniocerebral diseases. The key to surgical treatment is the location of the lesion, which is to find the abnormally excited neuron population. At present, intracranial electrodes have been identified as the gold standard for localization of lesions. The intracranial electrodes can directly record the brain electrical activity of the cerebral cortex and internal brain tissue, and can detect abnormal cortical discharge within 1 cm, with clear graphics and high sensitivity. For those cases where non-invasive examination can not identify the lesion, intracranial electrode EEG monitoring is a safe and reliable method of localization.
技术问题technical problem
在颅内植入电极后,可以通过CT扫描来获取电极在大脑中的位置分布信息。但是CT扫描对大脑内部皮层组织并不敏感,通过CT扫描不能够获取有关大脑内部皮层方面的信息,这不利于获取电极的位置信息。MRI扫描是获取大脑内部皮层组织信息的最好方法,但是由于植入电极通常为金属电极,在植入后不能够进行MRI扫描。 After the electrode is implanted in the brain, CT scan can be used to obtain the positional distribution information of the electrode in the brain. However, CT scans are not sensitive to the inner cortical tissue of the brain. CT scans are not able to obtain information about the inner cortex of the brain, which is not conducive to obtaining the position information of the electrodes. MRI scans are the best way to obtain information on the inner cortical tissue of the brain, but since the implanted electrodes are usually metal electrodes, MRI scans cannot be performed after implantation.
技术解决方案Technical solution
本发明要解决的技术问题在于,针对现有技术的上述不利于获取电极的位置信息的缺陷,提供一种能获取电极的位置信息的大脑皮层电极与磁共振图像融合显示的方法及装置。The technical problem to be solved by the present invention is to provide a method and apparatus for fused display of a cerebral cortex electrode and a magnetic resonance image capable of acquiring position information of an electrode in view of the above-mentioned drawbacks of the prior art which are disadvantageous for acquiring position information of the electrode.
本发明解决其技术问题所采用的技术方案是:构造一种大脑皮层电极与磁共振图像融合显示的方法,包括如下步骤:The technical solution adopted by the present invention to solve the technical problem thereof is: constructing a method for fusion display of a cerebral cortex electrode and a magnetic resonance image, comprising the following steps:
A)取病人植入颅内电极之前进行MRI扫描得到的MRI图像和该病人植入颅内电极之后进行CT扫描得到的植入后CT图像;A) taking the MRI image obtained by MRI scan before the patient is implanted into the intracranial electrode and the post-implantation CT image obtained by CT scanning after the patient implants the intracranial electrode;
B)将所述MRI图像和植入后CT图像配准在同一个坐标空间下;B) registering the MRI image and the post-implantation CT image in the same coordinate space;
C)从配准后的CT图像中提取电极图像信息;C) extracting electrode image information from the registered CT image;
D)从配准后的MRI图像中提取大脑皮层组织图像信息;D) extracting cerebral cortical tissue image information from the registered MRI images;
E)将所述电极图像信息和大脑皮层组织图像信息进行空间融合,并将空间融合后的信息通过三维可视化方法进行显示;E) spatially merging the electrode image information and the cerebral cortex tissue image information, and displaying the spatially fused information through a three-dimensional visualization method;
F)调节三维可视化显示的效果和角度,并将调节后的结果转换成需要的格式输出保存。F) Adjust the effect and angle of the 3D visual display, and convert the adjusted result into the desired format output for saving.
在本发明所述的大脑皮层电极与磁共振图像融合显示的方法中,所述步骤B)进一步包括:In the method of the cerebral cortex electrode and the magnetic resonance image fusion display of the present invention, the step B) further comprises:
B1)将所述MRI图像和植入后CT图像转换到同一坐标系下,并将所述MRI图像的物理中心与植入后CT图像的物理中心移动到同一个点;B1) converting the MRI image and the post-implant CT image into the same coordinate system, and moving the physical center of the MRI image to the same point of the physical center of the post-implant CT image;
B2)使用第一尺度分别对所述MRI图像中的部分图像像素和植入后CT图像中的部分图像像素进行旋转、平移和比对,直到所述MRI图像的轮廓与所述植入后CT图像的轮廓的相似度达到第一相似度;B2) rotating, translating, and comparing partial image pixels in the MRI image and partial image pixels in the post-implant CT image using a first scale until the contour of the MRI image and the post-implant CT The similarity of the outline of the image reaches the first similarity;
B3)使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入后CT图像中的部分图像像素再次进行旋转和平移;所述第一尺度所包含的像素个数大于所述第二尺度所包含的像素个数;B3) using the second scale to rotate and translate the partial image pixels in the MRI image after the first scale adjustment and the partial image pixels in the post-implant CT image; the first scale includes more pixels than the first scale The number of pixels included in the second scale;
B4)判断经过第二尺度调节后的MRI图像和植入后CT图像对应位置像素的相似度是否达到第二相似度,如是,结束配准过程;否则,返回步骤B3);所述第二相似度大于所述第一相似度。B4) determining whether the similarity between the MRI image after the second scale adjustment and the position pixel of the post-implant CT image reaches a second similarity, and if so, ending the registration process; otherwise, returning to step B3); The degree is greater than the first similarity.
在本发明所述的大脑皮层电极与磁共振图像融合显示的方法中,所述步骤C)进一步包括:In the method of the cerebral cortex electrode of the present invention and the magnetic resonance image fusion display, the step C) further includes:
C1)设定配准后的CT图像的灰度阈值范围,所述设定的灰度阈值范围将电极图像包括在内;  C1) setting a grayscale threshold range of the registered CT image, the set grayscale threshold range including the electrode image;
C2)将图像灰度落在设定的灰度阈值范围内的图像提取出来作为电极图像信息。C2) An image in which the image gray scale falls within the set grayscale threshold value is extracted as the electrode image information.
在本发明所述的大脑皮层电极与磁共振图像融合显示的方法中,在所述步骤A)之前还包括:In the method of the cerebral cortex electrode and the magnetic resonance image fusion display according to the present invention, before the step A), the method further includes:
A0)取病人植入颅内电极之前进行CT扫描得到的植入前CT图像;A0) taking a pre-implantation CT image obtained by performing a CT scan before the patient is implanted into the intracranial electrode;
在所述步骤A)和步骤B)之间还包括:Between the step A) and the step B), the method further includes:
B0)将所述MRI图像和植入前CT图像配准在同一个坐标空间下。B0) Register the MRI image and the pre-implant CT image in the same coordinate space.
在本发明所述的大脑皮层电极与磁共振图像融合显示的方法中,所述步骤B0)进一步包括:In the method of the cerebral cortex electrode and the magnetic resonance image fusion display of the present invention, the step B0) further includes:
B01)将所述MRI图像和植入前CT图像转换到同一坐标系下,并将所述MRI图像的物理中心与植入前CT图像的物理中心移动到同一个点;B01) converting the MRI image and the pre-implant CT image into the same coordinate system, and moving the physical center of the MRI image to the same point as the physical center of the pre-implant CT image;
B02)使用第一尺度分别对所述MRI图像中的部分图像像素和植入前CT图像中的部分图像像素进行旋转、平移和比对,直到所述MRI图像的轮廓与所述植入前CT图像的轮廓的相似度达到第一相似度;B02) rotating, translating, and comparing partial image pixels in the MRI image and partial image pixels in the pre-implant CT image, respectively, using a first scale until a contour of the MRI image and the pre-implantation CT The similarity of the outline of the image reaches the first similarity;
B03)使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入前CT图像中的部分图像像素再次进行旋转和平移;所述第一尺度所包含的像素个数大于所述第二尺度所包含的像素个数;B03) rotating and translating the partial image pixels in the MRI image after the first scale adjustment and the partial image pixels in the pre-implant CT image by using the second scale; the first scale includes the number of pixels larger than The number of pixels included in the second scale;
B04)判断经过第二尺度调节后的MRI图像和植入前CT图像对应位置像素的相似度是否达到第二相似度,如是,结束配准过程;否则,返回步骤B03);所述第二相似度大于所述第一相似度。B04) determining whether the similarity between the MRI image after the second scale adjustment and the position pixel corresponding to the pre-implant CT image reaches a second similarity, and if so, ending the registration process; otherwise, returning to step B03); The degree is greater than the first similarity.
在本发明所述的大脑皮层电极与磁共振图像融合显示的方法中,所述配准后的CT图像包括配准后的植入前CT图像和配准后的植入后CT图像,所述步骤C)进一步包括:In the method for fused fusion of a cerebral cortex electrode and a magnetic resonance image according to the present invention, the registered CT image includes a pre-implantation CT image after registration and a post-implantation CT image after registration, Step C) further includes:
C1')将所述配准后的植入后CT图像减去所述配准后的植入前CT图像剩下灰度差值不为0的部位即为电极图像信息。C1') The post-implantation CT image after the registration is subtracted from the pre-implantation CT image after the registration, and the portion where the gradation difference value is not zero is the electrode image information.
在本发明所述的大脑皮层电极与磁共振图像融合显示的方法中,所述步骤D)进一步包括:In the method of the cerebral cortex electrode and the magnetic resonance image fusion display of the present invention, the step D) further comprises:
D1)从经过配准后的MRI图像中任意选取一个种子点;D1) arbitrarily selecting a seed point from the registered MRI image;
D2)在以所述种子点为中心、半径为第一设定值的区域中选取其像素值落在设定区间内的点,并将其纳入到所述种子点所在的区域;D2) selecting, in an area centered on the seed point and having a radius of the first set value, a point whose pixel value falls within the set interval, and incorporating the point where the seed point is located;
D3)将所述半径进行扩大,并判断扩大后的区域中是否还存在其像素值落在所述设定区间内的点,如是,将其纳入到所述种子点所在的区域,执行步骤D4);否则,将所述种子点所在的区域作为大脑皮层组织图像信息;D3) expanding the radius, and determining whether there is a point in the enlarged area whose pixel value falls within the set interval, and if so, incorporating it into the area where the seed point is located, and performing step D4 ); otherwise, the region where the seed point is located is used as cerebral cortical tissue image information;
D4)返回步骤D3)。D4) returns to step D3).
在本发明所述的大脑皮层电极与磁共振图像融合显示的方法中,所述步骤E)进一步包括:In the method of the cerebral cortex electrode of the present invention and the magnetic resonance image fusion display, the step E) further includes:
E1)将所述电极图像信息的数据类型与所述大脑皮层组织图像信息的数据类型转换成相同的数据类型;E1) converting the data type of the electrode image information and the data type of the cerebral cortex tissue image information into the same data type;
E2)通过设定的色彩映射表,分别将电极图像和大脑皮层组织图像中每个像素不同的灰度值映射成不同的颜色和透明度,分别调节其颜色和透明度;E2) mapping different gray values of each pixel in the electrode image and the cerebral cortex tissue image into different colors and transparency through the set color mapping table, respectively adjusting the color and transparency;
E3)通过面绘制或体绘制将融合后的图像显示出来。E3) Display the fused image by face drawing or volume rendering.
在本发明所述的大脑皮层电极与磁共振图像融合显示的方法中,所述第一尺度的大小为八个像素,所述第二尺度的大小为一个像素,所述MRI图像、植入前CT图像和植入后CT图像均为DICOM格式的图像文件,所述需要的格式为DICOM文件、图片文件或视频文件。In the method of the cerebral cortex electrode and the magnetic resonance image fusion display of the present invention, the size of the first scale is eight pixels, the size of the second scale is one pixel, the MRI image, before implantation Both the CT image and the post-implantation CT image are image files in DICOM format, and the required format is a DICOM file, a picture file, or a video file.
本发明还涉及一种实现上述大脑皮层电极与磁共振图像融合显示的方法的装置,包括:The present invention also relates to an apparatus for implementing a method for fusion display of a cerebral cortex electrode and a magnetic resonance image, comprising:
配准单元:用于将MRI图像和植入后CT图像配准在同一个坐标空间下;Registration unit: used to register the MRI image and the post-implantation CT image in the same coordinate space;
电极信息提取单元:用于从配准后的CT图像中提取电极图像信息;An electrode information extracting unit: configured to extract electrode image information from the registered CT image;
大脑皮层信息提取单元:用于从配准后的MRI图像中提取大脑皮层组织图像信息;Cerebral cortex information extraction unit: for extracting cerebral cortical tissue image information from the registered MRI image;
信息融合单元:用于将所述电极图像信息和大脑皮层组织图像信息进行空间融合,并将空间融合后的信息通过三维可视化方法进行显示;The information fusion unit is configured to spatially fuse the electrode image information and the cerebral cortex tissue image information, and display the spatially fused information through a three-dimensional visualization method;
显示效果调节单元:用于调节三维可视化显示的效果和角度,并将调节后的结果转换成需要的格式输出保存。Display effect adjustment unit: used to adjust the effect and angle of the 3D visual display, and convert the adjusted result into the required format output for saving.
在本发明所述的装置中,所述配准单元进一步包括:In the device of the present invention, the registration unit further includes:
坐标转换模块:用于将所述MRI图像和植入后CT图像转换到同一坐标系下,并将所述MRI图像的物理中心与植入后CT图像的物理中心移动到同一个点;a coordinate conversion module: configured to convert the MRI image and the post-implant CT image into the same coordinate system, and move the physical center of the MRI image to the same point of the physical center of the post-implant CT image;
植入后旋转平移比对模块:用于使用第一尺度分别对所述MRI图像中的部分图像像素和植入后CT图像中的部分图像像素进行旋转、平移和比对,直到所述MRI图像的轮廓与所述植入后CT图像的轮廓的相似度达到第一相似度;Post-implantation rotational translation alignment module for respectively rotating, translating and comparing partial image pixels in the MRI image and partial image pixels in the post-implant CT image using the first scale until the MRI image The similarity between the contour of the CT image and the contour of the post-implant CT image reaches a first similarity;
植入后旋转平移模块:用于使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入后CT图像中的部分图像像素再次进行旋转和平移;所述第一尺度所包含的像素个数大于所述第二尺度所包含的像素个数;Post-implantation rotation translation module: for rotating and translating partial image pixels in the MRI image after the first scale adjustment and partial image pixels in the post-implant CT image using the second scale; The number of pixels included is greater than the number of pixels included in the second scale;
植入后相似度判断模块:用于判断经过第二尺度调节后的MRI图像和植入后CT图像对应位置像素的相似度是否达到第二相似度,如是,结束配准过程;否则,继续进行第二尺度的调节;所述第二相似度大于所述第一相似度。Post-implantation similarity judgment module: for judging whether the similarity between the MRI image adjusted by the second scale and the pixel corresponding to the post-implantation CT image reaches the second similarity, and if so, ending the registration process; otherwise, proceeding The adjustment of the second scale; the second similarity is greater than the first similarity.
在本发明所述的装置中,所述电极信息提取单元进一步包括:In the device of the present invention, the electrode information extracting unit further includes:
灰度阈值设定模块:用于设定配准后的CT图像的灰度阈值范围,所述设定的灰度阈值范围将电极图像包括在内; Grayscale threshold setting module: configured to set a grayscale threshold range of the registered CT image, the set grayscale threshold range including the electrode image;
电极图像提取模块:用于将图像灰度落在设定的灰度阈值范围内的图像提取出来作为电极图像信息。Electrode image extraction module: an image for extracting an image gray scale within a set grayscale threshold range as electrode image information.
在本发明所述的装置中,所述装置还包括:In the device of the present invention, the device further includes:
植入前配准单元:用于将所述MRI图像和植入前CT图像配准在同一个坐标空间下。Pre-implantation registration unit: for registering the MRI image and the pre-implantation CT image in the same coordinate space.
在本发明所述的装置中,所述植入前配准单元进一步包括:In the device of the present invention, the pre-implantation registration unit further comprises:
植入前坐标转换模块:用于将所述MRI图像和植入前CT图像转换到同一坐标系下,并将所述MRI图像的物理中心与植入前CT图像的物理中心移动到同一个点;Pre-implantation coordinate conversion module: for converting the MRI image and the pre-implant CT image into the same coordinate system, and moving the physical center of the MRI image to the same point as the physical center of the pre-implant CT image ;
植入前旋转平移比对模块:用于使用第一尺度分别对所述MRI图像中的部分图像像素和植入前CT图像中的部分图像像素进行旋转、平移和比对,直到所述MRI图像的轮廓与所述植入前CT图像的轮廓的相似度达到第一相似度;Pre-implantation rotational translation alignment module: for respectively rotating, translating and comparing partial image pixels in the MRI image and partial image pixels in the pre-implant CT image using the first scale until the MRI image The similarity between the contour of the CT image and the contour of the pre-implant CT image reaches a first similarity;
植入前旋转平移模块:用于使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入前CT图像中的部分图像像素再次进行旋转和平移;所述第一尺度所包含的像素个数大于所述第二尺度所包含的像素个数;a pre-implantation rotation translation module for rotating and translating a partial image pixel in the first scale-adjusted MRI image and a partial image pixel in the pre-implant CT image using a second scale; The number of pixels included is greater than the number of pixels included in the second scale;
植入前相似度判断模块:用于判断经过第二尺度调节后的MRI图像和植入前CT图像对应位置像素的相似度是否达到第二相似度,如是,结束配准过程;否则,返回继续进行第二尺度调节;所述第二相似度大于所述第一相似度。The pre-implantation similarity judgment module is configured to determine whether the similarity between the MRI image adjusted by the second scale and the pixel corresponding to the pre-implant CT image reaches a second similarity, and if so, the registration process ends; otherwise, return to continue Performing a second scale adjustment; the second similarity is greater than the first similarity.
在本发明所述的装置中,所述配准后的CT图像包括配准后的植入前CT图像和配准后的植入后CT图像,所述电极信息提取单元进一步包括:In the device of the present invention, the registered CT image includes a pre-implantation CT image after registration and a post-implantation CT image after registration, and the electrode information extraction unit further includes:
CT图像相减模块:将所述配准后的植入后CT图像减去所述配准后的植入前CT图像剩下灰度差值不为0的部位即为电极图像信息。The CT image subtraction module: the post-implantation CT image after the registration is subtracted from the pre-implantation CT image, and the portion where the gradation difference value is not 0 is the electrode image information.
在本发明所述的装置中,所述大脑皮层信息提取单元进一步包括:In the device of the present invention, the cerebral cortex information extracting unit further comprises:
种子点选取模块:用于从经过配准后的MRI图像中任意选取一个种子点;Seed point selection module: for arbitrarily selecting a seed point from the registered MRI image;
设定区间内种子点选取模块:用于在以所述种子点为中心、半径为第一设定值的区域中选取其像素值落在设定区间内的点,并将其纳入到所述种子点所在的区域;a seed point selection module for setting an interval: for selecting a point whose pixel value falls within a set interval in an area centered on the seed point and having a radius of a first set value, and incorporating the The area where the seed point is located;
设定区间内像素值判断模块:用于将所述半径进行扩大,并判断扩大后的区域中是否还存在其像素值落在所述设定区间内的点,如是,将其纳入到所述种子点所在的区域;否则,将所述种子点所在的区域作为大脑皮层组织图像信息;Setting a pixel value judgment module in the interval: for expanding the radius, and determining whether there is a point in the enlarged region whose pixel value falls within the set interval, and if so, incorporating the radius The area where the seed point is located; otherwise, the area where the seed point is located is used as image information of the cerebral cortex tissue;
像素值判断模块:用于继续进行设定区间内像素值的判断。The pixel value judgment module is configured to continue the determination of the pixel value in the set interval.
在本发明所述的装置中,所述信息融合单元进一步包括:In the device of the present invention, the information fusion unit further includes:
数据类型转换模块:用于将所述电极图像信息的数据类型与所述大脑皮层组织图像信息的数据类型转换成相同的数据类型;a data type conversion module: configured to convert a data type of the electrode image information and a data type of the cerebral cortex tissue image information into the same data type;
灰度值映射模块:用于通过设定的色彩映射表,分别将电极图像和大脑皮层组织图像中每个像素不同的灰度值映射成不同的颜色和透明度,分别调节其颜色和透明度;Gray value mapping module: for mapping different gray values of each pixel in the electrode image and the cerebral cortex tissue image into different colors and transparency through the set color mapping table, respectively adjusting the color and transparency thereof;
图像显示模块:用于通过面绘制或体绘制将融合后的图像显示出来。Image display module: used to display the fused image by face drawing or volume drawing.
在本发明所述的装置中,所述第一尺度的大小为八个像素,所述第二尺度的大小为一个像素,所述MRI图像、植入前CT图像和植入后CT图像均为DICOM格式的图像文件,所述需要的格式为DICOM文件、图片文件或视频文件。In the device of the present invention, the first size is eight pixels, the second size is one pixel, and the MRI image, the pre-implant CT image, and the post-implant CT image are both An image file in DICOM format, the required format is a DICOM file, a picture file, or a video file.
有益效果Beneficial effect
实施本发明的大脑皮层电极与磁共振图像融合显示的方法及装置,具有以下有益效果:由于取病人植入颅内电极之前进行MRI扫描得到的MRI图像和该病人植入颅内电极之后进行CT扫描得到的植入后CT图像,接着将CT图像与MRI图像进行配准,然后将提取处理的电极信息融合显示在MRI图像上,这样既能看到大脑组织信息,又同时看到电极的位置信息,所以其能获取电极的位置信息。 The method and device for realizing the fusion display of the cerebral cortex electrode and the magnetic resonance image of the present invention have the following beneficial effects: the MRI image obtained by MRI scan before the patient is implanted into the intracranial electrode and the CT after the patient is implanted with the intracranial electrode The scanned CT image is scanned, and then the CT image is registered with the MRI image, and then the extracted electrode information is fused and displayed on the MRI image, so that the brain tissue information can be seen and the position of the electrode can be seen at the same time. Information, so it can get the position information of the electrode.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明大脑皮层电极与磁共振图像融合显示的方法及装置一个实施例中的流程图;1 is a flow chart of an embodiment of a method and apparatus for fusion display of a cerebral cortex electrode and a magnetic resonance image of the present invention;
图2为所述实施例中将MRI图像和植入后CT图像配准在同一个坐标空间下的具体流程图;2 is a specific flowchart of registering an MRI image and an implanted CT image in the same coordinate space in the embodiment;
图3为所述实施例中从配准后的CT图像中提取电极图像信息的一种情况下的具体流程图;3 is a specific flowchart of a case where electrode image information is extracted from a registered CT image in the embodiment;
图4为所述实施例中将MRI图像和植入前CT图像配准在同一个坐标空间下的具体流程图;4 is a specific flowchart of registering an MRI image and a pre-implant CT image in the same coordinate space in the embodiment;
图5为所述实施例中从配准后的MRI图像中提取大脑皮层组织图像信息的具体流程图;FIG. 5 is a specific flowchart of extracting cerebral cortex tissue image information from the registered MRI image in the embodiment; FIG.
图6为所述实施例中将电极图像信息和大脑皮层组织图像信息进行空间融合,并将空间融合后的信息通过三维可视化方法进行显示的具体流程图;6 is a specific flowchart of spatially merging electrode image information and cerebral cortex tissue image information in the embodiment, and displaying the spatially fused information through a three-dimensional visualization method;
图7为所述实施例中装置的结构示意图。Figure 7 is a schematic view showing the structure of the apparatus in the embodiment.
本发明的实施方式Embodiments of the invention
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
在本发明大脑皮层电极与磁共振图像融合显示的方法及装置的实施例中,其大脑皮层电极与磁共振图像融合显示的方法的流程图如图1所示。图1中,该大脑皮层电极与磁共振图像融合显示的方法包括如下步骤:In the embodiment of the method and apparatus for fused display of the cerebral cortex electrode and the magnetic resonance image of the present invention, a flow chart of the method for displaying the cerebral cortex electrode and the magnetic resonance image is shown in FIG. 1 . In Fig. 1, the method for displaying the cerebral cortex electrode and the magnetic resonance image fusion comprises the following steps:
步骤S01取病人植入颅内电极之前进行MRI扫描得到的MRI图像和该病人植入颅内电极之后进行CT扫描得到的植入后CT图像:本步骤中,取病人植入颅内电极之前进行MRI扫描得到的MRI图像和该病人植入颅内电极之后进行CT扫描得到的植入后CT图像。上述MRI图像和植入后CT图像均为DICOM格式的图像文件。Step S01 takes the MRI image obtained by MRI scan before the patient implants the intracranial electrode and the post-implant CT image obtained by CT scan after the patient implants the intracranial electrode: in this step, the patient is implanted before the intracranial electrode is implanted. The MRI image obtained by MRI scan and the post-implantation CT image obtained by CT scan of the patient after implantation of the intracranial electrode. The above MRI image and post-implantation CT image are both image files in DICOM format.
步骤S02将MRI图像和植入后CT图像配准在同一个坐标空间下:本步骤中,通过调用三维空间数据配准算法,将MRI图像和植入后CT图像配准,配准后的MRI图像和植入后CT图像的数据在同一个坐标空间下,便于数据融合。值得一提的是,本实施例中,设置了一个软件系统,该软件系统为大脑皮层电极与磁共振图像融合显示系统。首先将MRI图像和植入后CT图像复制到大脑皮层电极与磁共振图像融合显示系统所在的主机上,通过本大脑皮层电极与磁共振图像融合显示系统的软件导入MRI图像和植入后CT图像的数据,然后通过调用三维空间数据配准算法,将MRI图像和植入后CT图像配准在同一个坐标空间下。关于具体如何配准,后续会进行详细描述。Step S02 registers the MRI image and the post-implantation CT image in the same coordinate space: in this step, the MRI image and the post-implantation CT image are registered by calling the three-dimensional spatial data registration algorithm, and the registered MRI is performed. The image and the CT image data after implantation are in the same coordinate space, which facilitates data fusion. It is worth mentioning that, in this embodiment, a software system is provided, which is a fusion display system of a cerebral cortex electrode and a magnetic resonance image. Firstly, the MRI image and the post-implantation CT image are copied to the host where the cerebral cortex electrode and the magnetic resonance image fusion display system are located, and the MRI image and the post-implantation CT image are imported through the software of the cerebral cortex electrode and the magnetic resonance image fusion display system. The data is then registered by the 3D spatial data registration algorithm to register the MRI image and the post-implant CT image in the same coordinate space. For details on how to register, a detailed description will be given later.
步骤S03从配准后的CT图像中提取电极图像信息:本步骤中,从配准后的CT图像中提取电极图像信息,具体是利用电极提取算法从配准后的CT图像中提取电极图像信息。Step S03 extracts electrode image information from the registered CT image: in this step, extracting electrode image information from the registered CT image, specifically extracting electrode image information from the registered CT image by using an electrode extraction algorithm .
步骤S04 从配准后的MRI图像中提取大脑皮层组织图像信息: MRI图像的数据中不仅包括了大脑皮层组织信息,还包括了头骨、颈部等其他部位信息,而这部分信息对于医生观察电极位置会有不利影响。本步骤中,从配准后的MRI图像中提取大脑皮层组织图像信息,具体是利用图像分割算法从配准后的MRI图像中将大脑皮层组织的信息提取出来,将其他无用信息去除掉。Step S04 extracting cerebral cortical tissue image information from the registered MRI image: The data of the MRI image includes not only the information of the cerebral cortex, but also other parts of the skull, the neck, etc., and this part of the information has an adverse effect on the position of the doctor to observe the electrode. In this step, the cerebral cortex tissue image information is extracted from the registered MRI image, specifically, the image segmentation algorithm is used to extract the information of the cerebral cortex tissue from the registered MRI image, and the other useless information is removed.
步骤S05 将电极图像信息和大脑皮层组织图像信息进行空间融合,并将空间融合后的信息通过三维可视化方法进行显示:本步骤中,将电极图像信息和大脑皮层组织图像信息进行空间融合,并将空间融合后的信息通过三维可视化方法进行显示。Step S05 The electrode image information and the cerebral cortex tissue image information are spatially fused, and the spatially fused information is displayed by a three-dimensional visualization method: in this step, the electrode image information and the cerebral cortex tissue image information are spatially fused, and the spatial fusion is performed. The subsequent information is displayed by a three-dimensional visualization method.
步骤S06 调节三维可视化显示的效果和角度,并调节后的结果转换成需要的格式输出保存:本步骤中,可以在本大脑皮层电极与磁共振图像融合显示系统中直观的看到大脑皮层组织和电极位置的相关信息,还可以通过鼠标拖动从不同方向观察大脑,可以调节三维可视化显示的效果和角度,并调节后的结果转换成需要的格式输出保存。值得一提的是,上述需要的格式为DICOM文件、图片文件或视频文件,可以将不同格式的结果用于各种不同用途。由于将提取处理的电极信息融合显示在MRI图像上,这样既能看到大脑组织信息,又同时看到电极的位置信息,所以其能获取电极的位置信息。Step S06 Adjust the effect and angle of the 3D visualization display, and adjust the adjusted result to the desired format. Output preservation: In this step, the cerebral cortex tissue and electrode position can be visually seen in the cerebral cortex electrode and magnetic resonance image fusion display system. Related information, you can also observe the brain from different directions by mouse drag, you can adjust the effect and angle of the 3D visual display, and adjust the results to convert to the desired format output save. It is worth mentioning that the above required format is a DICOM file, a picture file or a video file, and the results of different formats can be used for various purposes. Since the electrode information of the extraction process is fused and displayed on the MRI image, the brain tissue information can be seen and the position information of the electrode can be seen at the same time, so that the position information of the electrode can be obtained.
对于本实施例而言,上述步骤S02还可进一步细化,其细化后的流程图如图2所示。图2中,上述步骤S02进一步包括:For the embodiment, the above step S02 can be further refined, and the refined flowchart is as shown in FIG. 2 . In FIG. 2, the above step S02 further includes:
步骤S21 将MRI图像和植入后CT图像转换到同一坐标系下,并将MRI图像的物理中心和植入后CT图像的物理中心移动到同一个点:配准是为了使MRI图像和植入后CT图像对应的位置的像素达到空间上的一致,由于MRI图像和植入后CT图像来自不同的设备,分别率也各不相同,本实施例中采用了多分辨的配准策略。本步骤中,将MRI图像和植入后CT图像转换到同一坐标系下,并将MRI图像的物理中心和植入后CT图像的物理中心移动到同一个点,这样两个图像就会基本重合,这样做会减少移动的次数和旋转的次数。Step S21 Convert the MRI image and the post-implant CT image to the same coordinate system, and move the physical center of the MRI image and the physical center of the post-implant CT image to the same point: registration is for MRI images and post-implantation CT The pixels at the corresponding positions of the image are spatially consistent. Since the MRI image and the post-implantation CT image are from different devices, the rates are also different. In this embodiment, a multi-resolution registration strategy is adopted. In this step, the MRI image and the post-implant CT image are converted to the same coordinate system, and the physical center of the MRI image and the physical center of the post-implant CT image are moved to the same point, so that the two images will substantially coincide. This will reduce the number of moves and the number of rotations.
步骤S22 使用第一尺度分别对MRI图像中的部分图像像素和植入后CT图像中的部分图像像素进行旋转、平移和比对,直到MRI图像的轮廓与植入后CT图像的轮廓的相似度达到第一相似度:本步骤中,使用第一尺度(粗糙的尺度)分别对MRI图像中的部分图像像素和植入后CT图像中的部分图像像素进行旋转、平移和比对,直到MRI图像的轮廓与植入后CT图像的轮廓基本重合,也就是MRI图像的轮廓与植入后CT图像的轮廓满足设定的第一相似度。例如:设定第一相似度为90%,当然,在本实施例的一些情况下,第一相似度也可以为其他值。本第一实施例中,第一尺度的大小为八个像素,当然,在本第一实施例的一些情况下,第一尺度的大小还可以调整为其他值,具体调整到多少,可根据具体情况来定。Step S22 Rotating, translating, and comparing partial image pixels in the MRI image and partial image pixels in the post-implant CT image using the first scale until the contour of the MRI image is similar to the contour of the CT image after implantation. A similarity degree: in this step, the first image (rough scale) is used to rotate, translate and compare partial image pixels in the MRI image and partial image pixels in the post-implant CT image, respectively, until the contour of the MRI image The contour of the CT image after implantation is substantially coincident, that is, the contour of the MRI image and the contour of the CT image after implantation satisfy the set first similarity. For example, the first similarity is set to be 90%. Of course, in some cases of the embodiment, the first similarity may also be other values. In the first embodiment, the size of the first size is eight pixels. Of course, in some cases of the first embodiment, the size of the first size may be adjusted to other values, and the specific adjustment may be based on specific The situation is fixed.
步骤S23使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入后CT图像中的部分图像像素再次进行旋转和平移:本步骤中,使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入后CT图像中的部分图像像素再次进行旋转和平移,具体的,也就是使用第二尺度(精确的尺度),并用上一层的结果对其参数进行初始化,迭代上述旋转和平移的过程,直到达到最精确的尺度。值得一提的是,第一尺度所包含的像素个数大于第二尺度所包含的像素个数;第二尺度的大小为一个像素,当然,在本第一实施例的一些情况下,也可以根据具体情况调节第二尺度的大小。Step S23 uses the second scale to rotate and translate the partial image pixels in the MRI image after the first scale adjustment and the partial image pixels in the post-implant CT image: in this step, the second scale is used first. Partial image pixels in the scale-adjusted MRI image and partial image pixels in the post-implantation CT image are rotated and translated again, specifically, using a second scale (precise scale), and using the result of the previous layer Its parameters are initialized, and the above rotation and translation processes are iterated until the most accurate scale is reached. It is worth mentioning that the number of pixels included in the first scale is greater than the number of pixels included in the second scale; the size of the second scale is one pixel, of course, in some cases of the first embodiment, The size of the second scale is adjusted according to the specific situation.
步骤S24判断经过第二尺度调节后的MRI图像和植入后CT图像对应位置像素的相似度是否达到第二相似度:本步骤中,判断经过第二尺度调节后的MRI图像和植入后CT图像对应位置像素的相似度是否达到第二相似度,具体的,使用互信息相似性对比算法判断经过第二尺度调节后的MRI图像和植入后CT图像对应位置像素的相似度是否达到第二相似度,如果判断的结果为是,则执行步骤S25;否则,返回步骤S23。值得一提的是,本第一实施例中,第二相似度大于第一相似度。例如:第二相似度可以设定为99.8%,当然,在本实施例的一些情况下,第二相似度也可以设定为其他值。Step S24 determines whether the similarity between the MRI image after the second scale adjustment and the position pixel of the post-implant CT image reaches the second similarity: in this step, the MRI image after the second scale adjustment and the CT after implantation are determined. Whether the similarity of the image corresponding to the position pixel reaches the second similarity. Specifically, the mutual information similarity comparison algorithm is used to determine whether the similarity between the MRI image adjusted by the second scale and the pixel corresponding to the post-implant CT image reaches the second degree. Similarity, if the result of the determination is YES, step S25 is performed; otherwise, step S23 is returned. It is worth mentioning that in the first embodiment, the second similarity is greater than the first similarity. For example, the second similarity may be set to 99.8%. Of course, in some cases of the embodiment, the second similarity may also be set to other values.
步骤S25 结束配准过程:如果上述步骤S24的判断结果为是,则执行本步骤,本步骤中,结束MRI图像的和植入后CT图像的配准过程。这种由粗到细,在大尺度上看整体,在小尺度上看细节的方法能够极大程度地提高配准成功率。Step S25 Ending the registration process: If the result of the above step S24 is YES, the present step is performed. In this step, the registration process of the MRI image and the post-implantation CT image is ended. This method from coarse to fine, looking at the whole on a large scale, and looking at the details on a small scale can greatly improve the success rate of registration.
对于本第一实施例而言,上述步骤S03还可进一步细化,其细化后的流程图如图3所示。图3中,上述步骤S03进一步包括: For the first embodiment, the above step S03 can be further refined, and the refined flowchart is as shown in FIG. 3. In FIG. 3, the above step S03 further includes:
步骤S31设定配准后的CT图像的灰度阈值范围,设定的灰度阈值范围将电极图像包括在内:阈值分割算法适用于电极图像的灰度明显区别于软组织和骨肉的灰度的情况。本步骤中,设定配准后的CT图像的灰度阈值范围,设定的灰度阈值范围将电极图像包括在内,值得一提的是,经过配准后的CT图像(这里指的是经过配准后的植入后CT图像)中显示有设定的灰度阈值范围。Step S31 sets a grayscale threshold range of the registered CT image, and the set grayscale threshold range includes the electrode image: the threshold segmentation algorithm is suitable for the grayscale of the electrode image to be distinct from the grayscale of the soft tissue and the flesh. Happening. In this step, the grayscale threshold range of the registered CT image is set, and the set grayscale threshold range includes the electrode image. It is worth mentioning that the registered CT image (herein referred to A set grayscale threshold range is displayed in the post-implantation CT image after registration.
步骤S32 将图像灰度落在设定的灰度阈值范围内的图像提取出来作为电极图像信息:本步骤中,将图像灰度落在设定的灰度阈值范围内的图像提取出来作为电极图像信息。具体的,可根据具体情况,在设定的灰度阈值范围附近将该设定的灰度阈值范围调整到合适的范围,也就是调整到所需要的灰度范围,并将其图像灰度落在所需要的灰度范围内的图像提取出来作为电极图像信息,值得一提的是,通过设置合适的灰度范围,将大部分电极图像包含在内,便可将大部分非电极图像去除,留下电极,这样就可以得到电极图像信息。Step S32 The image whose image gray scale falls within the set grayscale threshold value is extracted as the electrode image information: in this step, the image whose image grayscale falls within the set grayscale threshold value is extracted as the electrode image information. Specifically, the set grayscale threshold range may be adjusted to an appropriate range in the vicinity of the set grayscale threshold range according to a specific situation, that is, adjusted to a required grayscale range, and the grayscale of the image is dropped. The image in the desired gray scale range is extracted as the electrode image information. It is worth mentioning that most of the non-electrode images can be removed by setting a suitable gray scale range and including most of the electrode images. The electrode is left so that the electrode image information can be obtained.
值得一提的是,为了更好的提取电极位置信息,该大脑皮层电极与磁共振图像融合显示的方法还需包括一些步骤,如图1所示,在上述步骤S01之前还包括:It is worth mentioning that, in order to better extract the position information of the electrode, the method for displaying the cerebral cortex electrode and the magnetic resonance image needs to include some steps. As shown in FIG. 1 , before the step S01, the method further includes:
步骤S00 取病人植入颅内电极之前进行CT扫描得到的植入前CT图像:本步骤中,取病人植入颅内电极之前进行CT扫描得到的植入前CT图像,然后将该植入前CT图像导入到上述大脑皮层电极与磁共振图像融合显示系统。该植入前CT图像为DICOM格式的图像文件。Step S00 Pre-implantation CT image obtained by CT scan before the patient is implanted into the intracranial electrode: In this step, the pre-implantation CT image obtained by CT scan before the patient is implanted into the intracranial electrode is taken, and then the CT image before implantation is taken. Introduced into the above cerebral cortex electrode with a magnetic resonance image fusion display system. The pre-implantation CT image is an image file in DICOM format.
在上述步骤S01和步骤S02之间还包括:Between the above steps S01 and S02, the method further includes:
步骤S20 将MRI图像和植入前CT图像配准在同一个坐标空间下:本步骤中,将MRI图像和植入前CT图像配准在同一个坐标空间下。关于如何配准,后续会进行详细描述。Step S20 The MRI image and the pre-implantation CT image are registered in the same coordinate space: in this step, the MRI image and the pre-implantation CT image are registered in the same coordinate space. A detailed description of how to register will follow.
对于本实施例而言,上述步骤S20还可进一步细化,其细化后的流程图如图4所示。图4中,上述步骤S20进一步包括:For the embodiment, the above step S20 can be further refined, and the refined flowchart is as shown in FIG. 4 . In FIG. 4, the above step S20 further includes:
步骤S201将MRI图像和植入前CT图像转换到同一坐标系下,并将MRI图像的物理中心与植入前CT图像的物理中心移动到同一个点:本步骤中,配准是为了使MRI图像和植入前CT图像对应的位置的像素达到空间上的一致,由于MRI图像和植入前CT图像来自不同的设备,分别率也各不相同,本实施例中采用了多分辨的配准策略。本步骤中,将MRI图像和植入前CT图像转换到同一坐标系下,并将MRI图像的物理中心和植入前CT图像的物理中心移动到同一个点,这样两个图像就会基本重合,这样做会减少移动的次数和旋转的次数。Step S201 converts the MRI image and the pre-implant CT image into the same coordinate system, and moves the physical center of the MRI image and the physical center of the pre-implant CT image to the same point: in this step, the registration is to make the MRI The pixels in the position corresponding to the image and the pre-implant CT image are spatially consistent. Since the MRI image and the pre-implant CT image are from different devices, the rates are also different. In this embodiment, multi-resolution registration is adopted. Strategy. In this step, the MRI image and the pre-implant CT image are converted to the same coordinate system, and the physical center of the MRI image and the physical center of the pre-implant CT image are moved to the same point, so that the two images will substantially coincide. This will reduce the number of moves and the number of rotations.
步骤S202 使用第一尺度分别对MRI图像中的部分图像像素和植入前CT图像中的部分图像像素进行旋转、平移和比对,直到MRI图像的轮廓与植入前CT图像的轮廓的相似度达到第一相似度:本步骤中,使用第一尺度(粗糙的尺度)分别对MRI图像中的部分图像像素和植入前CT图像中的部分图像像素进行旋转、平移和比对,直到MRI图像的轮廓与植入前CT图像的轮廓基本重合,也就是MRI图像的轮廓与植入前CT图像的轮廓满足设定的第一相似度。本第一实施例中,第一尺度的大小为八个像素,当然,在本第一实施例的一些情况下,第一尺度的大小还可以调整为其他值,具体调整到多少,可根据具体情况来定。Step S202 Rotating, translating, and comparing partial image pixels in the MRI image and partial image pixels in the pre-implant CT image using the first scale until the contour of the MRI image is similar to the contour of the pre-implant CT image. A similarity degree: in this step, the first image (rough scale) is used to rotate, translate and compare partial image pixels in the MRI image and partial image pixels in the pre-implant CT image, respectively, until the contour of the MRI image The contour of the CT image before implantation is substantially coincident, that is, the contour of the MRI image and the contour of the CT image before implantation satisfy the set first similarity. In the first embodiment, the size of the first size is eight pixels. Of course, in some cases of the first embodiment, the size of the first size may be adjusted to other values, and the specific adjustment may be based on specific The situation is fixed.
步骤S203 使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入前CT图像中的部分图像像素再次进行旋转和平移:本步骤中,使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入前CT图像中的部分图像像素再次进行旋转和平移,具体的,也就是使用第二尺度(精确的尺度),并用上一层的结果对其参数进行初始化,迭代上述旋转和平移的过程,直到达到最精确的尺度。值得一提的是,第一尺度所包含的像素个数大于第二尺度所包含的像素个数;第二尺度的大小为一个像素,当然,在本第一实施例的一些情况下,也可以根据具体情况调节第二尺度的大小。Step S203 Using a second scale, the partial image pixels in the MRI image after the first scale adjustment and the partial image pixels in the pre-implant CT image are rotated and translated again: in this step, the second scale is adjusted by the first scale. Part of the image pixels in the post-MRI image and part of the image pixels in the pre-implant CT image are rotated and translated again, specifically, using the second scale (precise scale), and using the result of the previous layer for its parameters Initialize, iterating through the above rotation and translation process until the most accurate scale is reached. It is worth mentioning that the number of pixels included in the first scale is greater than the number of pixels included in the second scale; the size of the second scale is one pixel, of course, in some cases of the first embodiment, The size of the second scale is adjusted according to the specific situation.
步骤S204判断经过第二尺度调节后的MRI图像和植入前CT图像对应位置像素的相似度是否达到第二相似度:本步骤中,判断经过第二尺度调节后的MRI图像和植入前CT图像对应位置像素的相似度是否达到第二相似度,具体的,使用互信息相似性对比算法判断经过第二尺度调节后的第一CT图像和MRI图像对应位置像素的相似度是否达到第二相似度,如果判断的结果为是,则执行步骤S205;否则,返回步骤S203。值得一提的是,本实施例中,第二相似度大于第一相似度。Step S204: determining whether the similarity between the MRI image after the second scale adjustment and the position pixel corresponding to the pre-implant CT image reaches the second similarity: in this step, determining the MRI image after the second scale adjustment and the pre-implant CT Whether the similarity of the pixel corresponding to the position reaches the second similarity, and specifically, using the mutual information similarity comparison algorithm to determine whether the similarity of the pixel corresponding to the position of the first CT image and the MRI image after the second scale adjustment reaches the second similarity If the result of the determination is yes, then step S205 is performed; otherwise, the process returns to step S203. It is worth mentioning that in this embodiment, the second similarity is greater than the first similarity.
步骤S205结束配准过程:如果上述步骤S204的判断结果为是,则执行本步骤。本步骤中,结束对MRI图像和植入前CT图像的配准过程。也就是配准后,植入前CT图像、植入后CT图像和MRI图像在同一个坐标系下,这样便于数据融合。这种由粗到细,在大尺度上看整体,在小尺度上看细节的方法能够极大程度地提高配准成功率。Step S205 ends the registration process: if the result of the above step S204 is YES, the present step is executed. In this step, the registration process for the MRI image and the pre-implant CT image is ended. That is, after registration, the CT image before implantation, the CT image after implantation, and the MRI image are in the same coordinate system, which is convenient for data fusion. This method from coarse to fine, looking at the whole on a large scale, and looking at the details on a small scale can greatly improve the success rate of registration.
值得一提的是,在植入电极之前进行CT扫描和植入电极之后进行CT扫描的情况下,这时,配准后的CT图像包括配准后的植入前CT图像和配准后的植入后CT图像,在提取电极图像信息时,上述步骤S03所使用的提取步骤如下: It is worth mentioning that in the case of CT scan before implanting the electrode and CT scan after implanting the electrode, the CT image after registration includes the pre-implantation CT image after registration and the registration. After the post-implant CT image, when extracting the electrode image information, the extraction steps used in the above step S03 are as follows:
将配准后的植入后CT图像减去配准后的植入前CT图像剩下灰度差值不为0的部位即为电极图像信息:本实施例使用相减分割算法提取电极图像信息,该相减分割算法的思想是将两幅图像相减,图像中同一位置像素相同的点相减后灰度值为0,剩下灰度不为0的即为两幅图像的差异。相减分割算法的基础是配准,理论上植入前CT图像和植入后CT图像分别配准到同一坐标系下,这样两幅图像的差别只在有无电极,因此通过两幅图像的相减即可将电极提取出来。本步骤中,将配准后的植入后CT图像减去配准后的植入前CT图像剩下灰度差值不为0的部位即为电极图像信息。大脑皮层电极与磁共振图像融合显示系统会通过配准后的植入前CT图像和配准后的植入后CT图像的对比算法和阈值分割算法共同作用,提取出植入电极的位置信息,这样就可以更好的提取电极位置信息。The post-implantation CT image after registration is subtracted from the pre-implantation CT image, and the portion where the gradation difference value is not 0 is the electrode image information: this embodiment uses the subtraction segmentation algorithm to extract the electrode image information. The idea of the subtraction segmentation algorithm is to subtract the two images, the pixels with the same position in the image are subtracted and the gray value is 0, and the remaining gray is not 0, which is the difference between the two images. The basis of the subtractive segmentation algorithm is registration. Theoretically, the pre-implantation CT image and the post-implantation CT image are respectively registered to the same coordinate system, so that the difference between the two images is only in the presence or absence of the electrode, so the two images are The electrode can be extracted by subtraction. In this step, the post-implantation CT image after registration is subtracted from the pre-implantation CT image, and the portion where the gradation difference value is not zero is the electrode image information. The cerebral cortex electrode and the magnetic resonance image fusion display system combine the pre-implantation CT image and the post-implantation CT image comparison algorithm and the threshold segmentation algorithm to extract the position information of the implanted electrode. This makes it possible to extract the electrode position information better.
对于本实施例而言,上述步骤S04还可进一步细化,其细化后的流程图如图5所示。图5中,上述步骤S04进一步包括:For the embodiment, the above step S04 can be further refined, and the refined flowchart is as shown in FIG. 5. In Figure 5, the above step S04 further includes:
步骤S41 从经过配准后的MRI图像中任意选取一个种子点:本实施例中,使用图像分割算法提取大脑皮层组织图像信息,该图像分割算法基于区域增长算法,其思想是将具有相似性的像素集合在一起构成区域。本步骤中,从经过配准后的MRI图像中任意选取一个种子点,具体先对需要分割的区域任意找一个种子点作为生长的起点。Step S41 Arbitrarily selecting a seed point from the registered MRI image: In this embodiment, an image segmentation algorithm is used to extract cerebral cortical tissue image information, and the image segmentation algorithm is based on a region growing algorithm, and the idea is to set a similarity pixel set. Together form the area. In this step, a seed point is arbitrarily selected from the registered MRI image, and a seed point is randomly selected as a starting point for growth.
步骤S42在以种子点为中心、半径为第一设定值的区域中选取其像素值落在设定区间内的点,并将其纳入到种子点所在的区域:本步骤中,在以种子点为中心、半径为第一设定值的区域中选取其像素值落在设定区间内的点,并将其纳入到种子点所在的区域,也就是将种子点像素周围领域中与种子点像素具有相同或者相似性质的像素(根据某种事先确定的生长或者相似准则来判断)合并到种子点像素所在区域中。本第一实施例中,上述第一设定值是软件事先设定的。Step S42 selects a point whose pixel value falls within the set interval in a region centered on the seed point and whose radius is the first set value, and incorporates it into the region where the seed point is located: in this step, in the seed A point whose center is the center and whose radius is the first set value is selected from the point where the pixel value falls within the set interval, and is included in the area where the seed point is located, that is, the seed point and the seed point around the pixel point. Pixels with the same or similar properties of pixels (as judged according to some predetermined growth or similarity criteria) are merged into the region where the seed point pixels are located. In the first embodiment, the first set value is set in advance by software.
步骤S43 将半径进行扩大,并判断扩大后的区域中是否还存在其像素值落在设定区间内的点:本步骤中,将半径进行扩大,并判断扩大后的区域中是否还存在其像素值落在设定区间内的点,也就是将上述纳种子点像素所在区域的新像素当作新的种子像素继续进行上面的过程,并判断是否还存在像素值落在设定区间内的点,如果判断的结果为是,则执行步骤S44;否则,执行步骤S45。Step S43 The radius is expanded, and it is judged whether there is a point in the enlarged area whose pixel value falls within the set interval: in this step, the radius is expanded, and it is judged whether or not the pixel value still exists in the enlarged area. The point in the set interval, that is, the new pixel in the region where the nano seed point pixel is located is regarded as a new seed pixel, and the above process is continued, and it is determined whether there is still a point where the pixel value falls within the set interval, if If the result of the determination is yes, then step S44 is performed; otherwise, step S45 is performed.
步骤S44 将其纳入到种子点所在的区域:如果上述步骤S43的判断结果为是,则执行本步骤。本步骤中,将其纳入到种子点所在的区域。执行完本步骤,返回步骤S43。Step S44 It is included in the area where the seed point is located: if the result of the above step S43 is YES, this step is performed. In this step, it is included in the area where the seed point is located. After performing this step, the process returns to step S43.
步骤S45将种子点所在的区域作为大脑皮层组织图像信息:如果上述步骤S43的判断结果为否,则执行本步骤。本步骤中,将种子点所在的区域作为大脑皮层组织图像信息。也就是,当再没有满足条件的像素被包含进来时,这样一个区域就长成了。也就是说,当前图像分割算法所用的生长准则是在半径为一定值的领域中的点像素值在某一区间内,则将这些点纳入到种子像素所在区域,当没有符合这个准则的点被纳入时,图像分割算法终止。这样就将电极图像信息和大脑皮层组织图像信息提取了出来。Step S45 uses the region where the seed point is located as cerebral cortical tissue image information: if the result of the above-described step S43 is NO, the present step is executed. In this step, the region where the seed point is located is used as image information of the cerebral cortex tissue. That is, when a pixel that does not satisfy the condition is included, such an area becomes long. That is to say, the growth criterion used by the current image segmentation algorithm is that the point pixel values in the field with a certain radius are within a certain interval, and then the points are included in the region where the seed pixel is located, and when there is no point meeting the criterion, When incorporated, the image segmentation algorithm terminates. This extracts the electrode image information and the cerebral cortex tissue image information.
对于本实施例而言,上述步骤S05还可进一步细化,其细化后的流程图如图6所示。图6中,上述步骤S05进一步包括: For the embodiment, the above step S05 can be further refined, and the refined flowchart is as shown in FIG. 6. In Figure 6, the above step S05 further includes:
步骤S51 将电极图像信息的数据类型与大脑皮层组织图像信息的数据类型转换成相同的数据类型:本步骤中,将电极图像信息的数据类型与大脑皮层组织图像信息的数据类型转换成相同的数据类型,本第一实施例中,该相同的数据类型为Byte型,也就是将电极图像信息与大脑皮层组织图像信息都转换成八位数据。Step S51 Converting the data type of the electrode image information and the data type of the cerebral cortex tissue image information into the same data type: in this step, the data type of the electrode image information and the data type of the cerebral cortex tissue image information are converted into the same data type. In the first embodiment, the same data type is Byte type, that is, the electrode image information and the cerebral cortex tissue image information are both converted into eight-bit data.
步骤S52 通过设定的色彩映射表,分别将电极图像和大脑皮层组织图像中每个像素不同的灰度值映射成不同的颜色和透明度,分别调节其颜色和透明度:本步骤中,通过设定的色彩映射表,分别将电极图像和大脑皮层组织图像中每个像素不同的灰度值映射成不同的颜色和透明度,分别调节其颜色和透明度。值得一提的是,在融合的过程中,分别给脑组织和电极对应不同的颜色,最后再将他们显示在同一坐标系下,这样可以分别调节他们的颜色和透明度,给使用带来了很大的方便性。Step S52 Through the set color map, the gray values of each pixel in the electrode image and the cerebral cortex tissue image are respectively mapped into different colors and transparency, and the color and transparency are respectively adjusted: in this step, the set color is adopted. The mapping table maps different gray values of each pixel in the electrode image and the cerebral cortex tissue image into different colors and transparency, respectively, and adjusts the color and transparency thereof. It is worth mentioning that in the process of fusion, the brain tissue and the electrode are respectively given different colors, and finally they are displayed in the same coordinate system, so that they can adjust their color and transparency separately, which brings a very good use. Great convenience.
步骤S53通过面绘制或体绘制将融合后的图像显示出来:本步骤中,通过面绘制或体绘制将融合后的图像显示出来。 Step S53 displays the fused image by surface rendering or volume rendering: in this step, the fused image is displayed by surface rendering or volume rendering.
本实施例还涉及一种实现上述大脑皮层电极与磁共振图像融合显示的方法的装置,其结构示意图如图7所示。图7中,该装置包括配准单元2、电极信息提取单元3、大脑皮层信息提取单元4、信息融合单元5和显示效果调节单元6;其中,配准单元2用于将MRI图像和植入后CT图像配准在同一个坐标空间下;电极信息提取单元3用于从配准后的CT图像中提取电极图像信息;大脑皮层信息提取单元4用于从配准后的MRI图像中提取大脑皮层组织图像信息;信息融合单元5用于将电极图像信息和大脑皮层组织图像信息进行空间融合,并将空间融合后的信息通过三维可视化方法进行显示;显示效果调节单元6用于调节三维可视化显示的效果和角度,并将调节后的结果转换成需要的格式输出保存。值得一提的是,上述MRI图像和植入后CT图像均为DICOM格式的图像文件。上述需要的格式为DICOM文件、图片文件或视频文件,可以将不同格式的结果用于各种不同用途。由于将提取处理的电极信息融合显示在MRI图像上,这样既能看到大脑组织信息,又同时看到电极的位置信息,所以其能获取电极的位置信息。The embodiment further relates to a device for realizing the method for displaying the fusion of the cerebral cortex electrode and the magnetic resonance image, and a schematic structural view thereof is shown in FIG. 7 . In Fig. 7, the apparatus comprises a registration unit 2, an electrode information extraction unit 3, a cerebral cortex information extraction unit 4, an information fusion unit 5, and a display effect adjustment unit 6; wherein the registration unit 2 is used for implanting MRI images and implants The post CT image is registered in the same coordinate space; the electrode information extracting unit 3 is configured to extract electrode image information from the registered CT image; the cerebral cortex information extracting unit 4 is configured to extract the brain from the registered MRI image. Cortical tissue image information; the information fusion unit 5 is configured to spatially fuse the electrode image information and the cerebral cortex tissue image information, and display the spatially fused information through a three-dimensional visualization method; the display effect adjustment unit 6 is configured to adjust the three-dimensional visual display The effect and angle, and the adjusted result is converted to the desired format output saved. It is worth mentioning that the above MRI image and the post-implant CT image are both DICOM format image files. The above required format is a DICOM file, a picture file or a video file, and the results of different formats can be used for various purposes. Since the electrode information of the extraction process is fused and displayed on the MRI image, the brain tissue information can be seen and the position information of the electrode can be seen at the same time, so that the position information of the electrode can be obtained.
本实施例中,配准单元2进一步包括坐标转换模块21、植入后旋转平移比对模块22、植入后旋转平移模块23和植入后相似度判断模块24;其中,坐标转换模块21用于将MRI图像和植入后CT图像转换到同一坐标系下,并将MRI图像的物理中心与植入后CT图像的物理中心移动到同一个点;植入后旋转平移比对模块22用于使用第一尺度分别对MRI图像中的部分图像像素和植入后CT图像中的部分图像像素进行旋转、平移和比对,直到MRI图像的轮廓与植入后CT图像的轮廓的相似度达到第一相似度;植入后旋转平移模块23用于使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入后CT图像中的部分图像像素再次进行旋转和平移;上述第一尺度所包含的像素个数大于第二尺度所包含的像素个数;植入后相似度判断模块24用于判断经过第二尺度调节后的MRI图像和植入后CT图像对应位置像素的相似度是否达到第二相似度,如是,结束配准过程;否则,继续进行第二尺度的调节;上述第二相似度大于第一相似度。这样就完成了MRI图像和植入后CT图像的配准。值得一提的是,本实施例中,上述第一尺度的大小为八个像素,第二尺度的大小为一个像素,当然,在本实施例的一些情况下,第一尺度和第二尺度的大小可根据具体情况进行相应调节。In this embodiment, the registration unit 2 further includes a coordinate conversion module 21, a post-implantation rotation translation comparison module 22, a post-implantation rotation translation module 23, and a post-implantation similarity determination module 24; wherein, the coordinate conversion module 21 uses The MRI image and the post-implantation CT image are converted to the same coordinate system, and the physical center of the MRI image is moved to the same point as the physical center of the post-implant CT image; the post-implantation rotation translation comparison module 22 is used for Rotating, translating, and comparing partial image pixels in the MRI image and partial image pixels in the post-implant CT image using the first scale until the contour of the MRI image is similar to the contour of the CT image after implantation. a similarity; the post-implantation rotation translation module 23 is configured to rotate and translate a portion of the image pixels in the MRI image after the first scale adjustment and a portion of the image pixels in the post-implant CT image using the second scale; The number of pixels included in the first scale is greater than the number of pixels included in the second scale; the post-implant similarity judgment module 24 is configured to determine the MRI image and the implant after the second scale adjustment CT image corresponding to the pixel position of the similarity reaches a second degree of similarity, and if so, the end of the registration process; otherwise, continue adjusting the second scale; and the second similarity is larger than the first similarity. This completes the registration of the MRI image and the post-implantation CT image. It is worth mentioning that, in this embodiment, the size of the first size is eight pixels, and the size of the second size is one pixel. Of course, in some cases of the embodiment, the first size and the second size The size can be adjusted according to the specific situation.
本实施例中,当只进行电极植入前MRI扫描和电极植入后CT扫描的情况下,上述电极信息提取单元3进一步包括灰度阈值设定模块31和电极图像提取模块32;其中,灰度阈值设定模块31用于设定配准后的CT图像的灰度阈值范围,上述设定的灰度阈值范围将电极图像包括在内;电极图像提取模块32用于将图像灰度落在设定的灰度阈值范围内的图像提取出来作为电极图像信息。这样就完成了电极信息的提取。In this embodiment, when only the pre-implant MRI scan and the post-implant CT scan are performed, the electrode information extracting unit 3 further includes a grayscale threshold setting module 31 and an electrode image extracting module 32; The degree threshold setting module 31 is configured to set a grayscale threshold range of the registered CT image, the set grayscale threshold range includes the electrode image; the electrode image extraction module 32 is configured to drop the image grayscale An image within the set grayscale threshold range is extracted as electrode image information. This completes the extraction of the electrode information.
为了更好的提取电极位置信息,还需要取病人植入颅内电极前进行CT扫描得到的植入前CT图像,进行一次CT扫描,这时,该装置还包括植入前配准单元20,植入前配准单元20用于将MRI图像和植入前CT图像配准在同一个坐标空间下。该植入前CT图像为DICOM格式的图像文件。In order to better extract the electrode position information, it is also necessary to take a pre-implantation CT image obtained by CT scanning before the patient is implanted into the intracranial electrode, and perform a CT scan. At this time, the device further includes a pre-implantation registration unit 20, The pre-implantation registration unit 20 is used to register the MRI image and the pre-implantation CT image in the same coordinate space. The pre-implantation CT image is an image file in DICOM format.
本实施例中,植入前配准单元20进一步包括植入前坐标转换模块201、植入前旋转平移比对模块202、植入前旋转平移模块203和植入前相似度判断模块204;其中,植入前坐标转换模块201用于将MRI图像和植入前CT图像转换到同一坐标系下,并将MRI图像的物理中心与植入前CT图像的物理中心移动到同一个点;植入前旋转平移比对模块202用于使用第一尺度分别对MRI图像中的部分图像像素和植入前CT图像中的部分图像像素进行旋转、平移和比对,直到MRI图像的轮廓与植入前CT图像的轮廓的相似度达到第一相似度;植入前旋转平移模块203用于使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入前CT图像中的部分图像像素再次进行旋转和平移;上述第一尺度所包含的像素个数大于第二尺度所包含的像素个数;植入前相似度判断模块204用于判断经过第二尺度调节后的MRI图像和植入前CT图像对应位置像素的相似度是否达到第二相似度,如是,结束配准过程;否则,返回继续进行第二尺度调节;上述第二相似度大于第一相似度。这样就完成了MRI图像与植入前CT图像的配准。In this embodiment, the pre-implantation registration unit 20 further includes a pre-implantation coordinate conversion module 201, a pre-implantation rotational translation comparison module 202, a pre-implantation rotation translation module 203, and a pre-implantation similarity determination module 204; The pre-implantation coordinate conversion module 201 is configured to convert the MRI image and the pre-implant CT image into the same coordinate system, and move the physical center of the MRI image to the same point of the physical center of the pre-implant CT image; The front rotation translation comparison module 202 is configured to respectively rotate, translate, and compare partial image pixels in the MRI image and partial image pixels in the pre-implant CT image using the first scale until the contour of the MRI image and the pre-implantation The similarity of the contour of the CT image reaches a first similarity; the pre-implantation rotation translation module 203 is configured to use a second scale to pass a partial image pixel in the MRI image after the first scale adjustment and a portion in the pre-implant CT image The pixel of the image is rotated and translated again; the number of pixels included in the first scale is greater than the number of pixels included in the second scale; the pre-implantation similarity determining module 204 is configured to determine the second Whether the similarity between the adjusted MRI image and the pre-implant CT image corresponds to the second similarity, if yes, the registration process is ended; otherwise, the second calibration is continued; the second similarity is greater than the first Similarity. This completes the registration of the MRI image with the pre-implantation CT image.
本实施例中,上述配准后的CT图像包括配准后的植入前CT图像和配准后的植入后CT图像,则这种情况下,电极信息提取单元3进一步包括CT图像相减模块31',CT图像相减模块31'用于将配准后的植入后CT图像减去配准后的植入前CT图像剩下灰度差值不为0的部位即为电极图像信息。这样就完成了电极信息的提取。值得一提的是,在实际应用中,可根据具体情况,将电极信息提取单元3设置成包括灰度阈值设定模块31和电极图像提取模块32,也可以将电极信息提取单元3设置成包括CT图像相减模块31'。In this embodiment, the CT image after registration includes the pre-implantation CT image after registration and the post-implantation CT image after registration. In this case, the electrode information extracting unit 3 further includes CT image subtraction. The module 31', the CT image subtraction module 31' is configured to subtract the registered pre-implant CT image after the registration of the post-implantation CT image, and the portion where the gradation difference value is not 0 is the electrode image information. . This completes the extraction of the electrode information. It is worth mentioning that, in practical applications, the electrode information extraction unit 3 may be configured to include the grayscale threshold setting module 31 and the electrode image extraction module 32, or the electrode information extraction unit 3 may be configured to include CT image subtraction module 31'.
本实施例中,大脑皮层信息提取单元4进一步包括种子点选取模块41、设定区间内种子点选取模块42、设定区间内像素值判断模块43和像素值判断模块44;其中,种子点选取模块41用于从经过配准后的MRI图像中任意选取一个种子点;设定区间内种子点选取模块42用于在以种子点为中心、半径为第一设定值的区域中选取其像素值落在设定区间内的点,并将其纳入到种子点所在的区域;设定区间内像素值判断模块43用于将半径进行扩大,并判断扩大后的区域中是否还存在其像素值落在设定区间内的点,如是,将其纳入到种子点所在的区域;否则,将种子点所在的区域作为大脑皮层组织图像信息;像素值判断模块44用于继续进行设定区间内像素值的判断。这样就完成了大脑皮层信息的提取。In this embodiment, the cerebral cortex information extracting unit 4 further includes a seed point selecting module 41, a set interval intra-segment point selecting module 42, a set interval intra-pixel value judging module 43 and a pixel value judging module 44; wherein, the seed point is selected The module 41 is configured to arbitrarily select one seed point from the registered MRI image; the seeding point selection module 42 is configured to select the pixel in the region with the seed point as the center and the radius as the first set value. The value falls within the set interval and is included in the region where the seed point is located; the set interval intra-pixel value judgment module 43 is configured to expand the radius and determine whether the pixel value still exists in the enlarged region. a point falling within the set interval, if yes, is included in the region where the seed point is located; otherwise, the region where the seed point is located is used as cerebral cortical tissue image information; the pixel value judging module 44 is configured to continue to perform the pixel in the set interval The judgment of the value. This completes the extraction of cerebral cortex information.
本实施例中,信息融合单元5进一步包括数据类型转换模块51、灰度值映射模块52和图像显示模块53;其中,数据类型转换模块51用于将所述电极图像信息的数据类型与所述大脑皮层组织图像信息的数据类型转换成相同的数据类型;灰度值映射模块52用于通过设定的色彩映射表,分别将电极图像和大脑皮层组织图像中每个像素不同的灰度值映射成不同的颜色和透明度,分别调节其颜色和透明度;图像显示模块53用于通过面绘制或体绘制将融合后的图像显示出来。这样,既可以看到大脑皮层组织的信息,又能看到电极的位置信息,为用户提供帮助。In this embodiment, the information fusion unit 5 further includes a data type conversion module 51, a gray value mapping module 52, and an image display module 53. The data type conversion module 51 is configured to use the data type of the electrode image information with the The data type of the cerebral cortex tissue image information is converted into the same data type; the gray value mapping module 52 is configured to respectively map different gray values of each pixel in the electrode image and the cerebral cortical tissue image through the set color mapping table. Different colors and transparency are used to adjust their color and transparency respectively; the image display module 53 is used to display the fused image by face drawing or volume rendering. In this way, you can see the information of the cerebral cortex and the position information of the electrodes to help the user.
总之,本实施例中,取植入前CT图像、植入后CT图像和MRI图像的数据并导入大脑皮层电极与磁共振图像融合显示系统,大脑皮层电极与磁共振图像融合显示系统会自动进行处理,并以三维可视化的方式直观方便的展示结果,通过将植入电极的信息与大脑皮层组织信息完美结合,给提供了丰富的辅助信息,在不增加负担的情况下能够获得更满意的结果。In summary, in the present embodiment, the data of the pre-implant CT image, the post-implant CT image and the MRI image are taken and introduced into the cerebral cortex electrode and the magnetic resonance image fusion display system, and the cerebral cortex electrode and the magnetic resonance image fusion display system are automatically performed. Processing and visualizing the results in a three-dimensional visualization, by combining the information of the implanted electrodes with the information of the cerebral cortex, provides a wealth of auxiliary information, and can obtain more satisfactory results without increasing the burden. .
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are included in the spirit and scope of the present invention, should be included in the present invention. Within the scope of protection.

Claims (1)

  1. 1、一种大脑皮层电极与磁共振图像融合显示的方法,其特征在于,包括如下步骤:A method for fused display of a cerebral cortex electrode and a magnetic resonance image, comprising the steps of:
    A)取病人植入颅内电极之前进行MRI扫描得到的MRI图像和该病人植入颅内电极之后进行CT扫描得到的植入后CT图像;A) taking the MRI image obtained by MRI scan before the patient is implanted into the intracranial electrode and the post-implantation CT image obtained by CT scanning after the patient implants the intracranial electrode;
    B)将所述MRI图像和植入后CT图像配准在同一个坐标空间下;B) registering the MRI image and the post-implantation CT image in the same coordinate space;
    C)从配准后的CT图像中提取电极图像信息;C) extracting electrode image information from the registered CT image;
    D)从配准后的MRI图像中提取大脑皮层组织图像信息;D) extracting cerebral cortical tissue image information from the registered MRI images;
    E)将所述电极图像信息和大脑皮层组织图像信息进行空间融合,并将空间融合后的信息通过三维可视化方法进行显示;E) spatially merging the electrode image information and the cerebral cortex tissue image information, and displaying the spatially fused information through a three-dimensional visualization method;
    F)调节三维可视化显示的效果和角度,并将调节后的结果转换成需要的格式输出保存。F) Adjust the effect and angle of the 3D visual display, and convert the adjusted result into the desired format output for saving.
    2、根据权利要求1所述的大脑皮层电极与磁共振图像融合显示的方法,其特征在于,所述步骤B)进一步包括:2 . The method of claim 1 , wherein the step B) further comprises:
    B1)将所述MRI图像和植入后CT图像转换到同一坐标系下,并将所述MRI图像的物理中心与植入后CT图像的物理中心移动到同一个点;B1) converting the MRI image and the post-implant CT image into the same coordinate system, and moving the physical center of the MRI image to the same point of the physical center of the post-implant CT image;
    B2)使用第一尺度分别对所述MRI图像中的部分图像像素和植入后CT图像中的部分图像像素进行旋转、平移和比对,直到所述MRI图像的轮廓与所述植入后CT图像的轮廓的相似度达到第一相似度;B2) rotating, translating, and comparing partial image pixels in the MRI image and partial image pixels in the post-implant CT image using a first scale until the contour of the MRI image and the post-implant CT The similarity of the outline of the image reaches the first similarity;
    B3)使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入后CT图像中的部分图像像素再次进行旋转和平移;所述第一尺度所包含的像素个数大于所述第二尺度所包含的像素个数;B3) using the second scale to rotate and translate the partial image pixels in the MRI image after the first scale adjustment and the partial image pixels in the post-implant CT image; the first scale includes more pixels than the first scale The number of pixels included in the second scale;
    B4)判断经过第二尺度调节后的MRI图像和植入后CT图像对应位置像素的相似度是否达到第二相似度,如是,结束配准过程;否则,返回步骤B3);所述第二相似度大于所述第一相似度。B4) determining whether the similarity between the MRI image after the second scale adjustment and the position pixel of the post-implant CT image reaches a second similarity, and if so, ending the registration process; otherwise, returning to step B3); The degree is greater than the first similarity.
    3、根据权利要求2所述的大脑皮层电极与磁共振图像融合显示的方法,其特征在于,所述步骤C)进一步包括:The method of claim 2, wherein the step C) further comprises:
    C1)设定配准后的CT图像的灰度阈值范围,所述设定的灰度阈值范围将电极图像包括在内; C1) setting a grayscale threshold range of the registered CT image, the set grayscale threshold range including the electrode image;
    C2)将图像灰度落在设定的灰度阈值范围内的图像提取出来作为电极图像信息。C2) An image in which the image gray scale falls within the set grayscale threshold value is extracted as the electrode image information.
    4、根据权利要求 2所述的大脑皮层电极与磁共振图像融合显示的方法,其特征在于,在所述步骤A)之前还包括:4. According to the claims 2, wherein the cerebral cortex electrode is fused with a magnetic resonance image, and the method further comprises: before the step A):
    A0)取病人植入颅内电极之前进行CT扫描得到的植入前CT图像;A0) taking a pre-implantation CT image obtained by performing a CT scan before the patient is implanted into the intracranial electrode;
    在所述步骤A)和步骤B)之间还包括:Between the step A) and the step B), the method further includes:
    B0)将所述MRI图像和植入前CT图像配准在同一个坐标空间下。B0) Register the MRI image and the pre-implant CT image in the same coordinate space.
    5、根据权利要求4所述的大脑皮层电极与磁共振图像融合显示的方法,其特征在于,所述步骤B0)进一步包括:The method of claim 4, wherein the step B0) further comprises:
    B01)将所述MRI图像和植入前CT图像转换到同一坐标系下,并将所述MRI图像的物理中心与植入前CT图像的物理中心移动到同一个点;B01) converting the MRI image and the pre-implant CT image into the same coordinate system, and moving the physical center of the MRI image to the same point as the physical center of the pre-implant CT image;
    B02)使用第一尺度分别对所述MRI图像中的部分图像像素和植入前CT图像中的部分图像像素进行旋转、平移和比对,直到所述MRI图像的轮廓与所述植入前CT图像的轮廓的相似度达到第一相似度;B02) rotating, translating, and comparing partial image pixels in the MRI image and partial image pixels in the pre-implant CT image, respectively, using a first scale until a contour of the MRI image and the pre-implantation CT The similarity of the outline of the image reaches the first similarity;
    B03)使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入前CT图像中的部分图像像素再次进行旋转和平移;所述第一尺度所包含的像素个数大于所述第二尺度所包含的像素个数;B03) rotating and translating the partial image pixels in the MRI image after the first scale adjustment and the partial image pixels in the pre-implant CT image by using the second scale; the first scale includes the number of pixels larger than The number of pixels included in the second scale;
    B04)判断经过第二尺度调节后的MRI图像和植入前CT图像对应位置像素的相似度是否达到第二相似度,如是,结束配准过程;否则,返回步骤B03);所述第二相似度大于所述第一相似度。B04) determining whether the similarity between the MRI image after the second scale adjustment and the position pixel corresponding to the pre-implant CT image reaches a second similarity, and if so, ending the registration process; otherwise, returning to step B03); The degree is greater than the first similarity.
    6、根据权利要求5所述的大脑皮层电极与磁共振图像融合显示的方法,其特征在于,所述配准后的CT图像包括配准后的植入前CT图像和配准后的植入后CT图像,所述步骤C)进一步包括:6. A method of fusion display of a cerebral cortex electrode and a magnetic resonance image according to claim 5, wherein the registered CT image comprises a pre-implantation CT image after registration and an implant after registration After the CT image, the step C) further includes:
    C1')将所述配准后的植入后CT图像减去所述配准后的植入前CT图像剩下灰度差值不为0的部位即为电极图像信息。C1') The post-implantation CT image after the registration is subtracted from the pre-implantation CT image after the registration, and the portion where the gradation difference value is not zero is the electrode image information.
    7、根据权利要求1至6任意一项所述的大脑皮层电极与磁共振图像融合显示的方法,其特征在于,所述步骤D)进一步包括:The method of fused display of a cerebral cortex electrode and a magnetic resonance image according to any one of claims 1 to 6, wherein the step D) further comprises:
    D1)从经过配准后的MRI图像中任意选取一个种子点;D1) arbitrarily selecting a seed point from the registered MRI image;
    D2)在以所述种子点为中心、半径为第一设定值的区域中选取其像素值落在设定区间内的点,并将其纳入到所述种子点所在的区域;D2) selecting, in an area centered on the seed point and having a radius of the first set value, a point whose pixel value falls within the set interval, and incorporating the point where the seed point is located;
    D3)将所述半径进行扩大,并判断扩大后的区域中是否还存在其像素值落在所述设定区间内的点,如是,将其纳入到所述种子点所在的区域,执行步骤D4);否则,将所述种子点所在的区域作为大脑皮层组织图像信息;D3) expanding the radius, and determining whether there is a point in the enlarged area whose pixel value falls within the set interval, and if so, incorporating it into the area where the seed point is located, and performing step D4 ); otherwise, the region where the seed point is located is used as cerebral cortical tissue image information;
    D4)返回步骤D3)。D4) returns to step D3).
    8、根据权利要求7所述的大脑皮层电极与磁共振图像融合显示的方法,其特征在于,所述步骤E)进一步包括:The method of the cerebral cortex electrode and the magnetic resonance image fusion display according to claim 7, wherein the step E) further comprises:
    E1)将所述电极图像信息的数据类型与所述大脑皮层组织图像信息的数据类型转换成相同的数据类型;E1) converting the data type of the electrode image information and the data type of the cerebral cortex tissue image information into the same data type;
    E2)通过设定的色彩映射表,分别将电极图像和大脑皮层组织图像中每个像素不同的灰度值映射成不同的颜色和透明度,分别调节其颜色和透明度;E2) mapping different gray values of each pixel in the electrode image and the cerebral cortex tissue image into different colors and transparency through the set color mapping table, respectively adjusting the color and transparency;
    E3)通过面绘制或体绘制将融合后的图像显示出来。E3) Display the fused image by face drawing or volume rendering.
    9、根据权利要求8所述的大脑皮层电极与磁共振图像融合显示的方法,其特征在于,所述第一尺度的大小为八个像素,所述第二尺度的大小为一个像素,所述MRI图像、植入前CT图像和植入后CT图像均为DICOM格式的图像文件,所述需要的格式为DICOM文件、图片文件或视频文件。The cerebral cortex electrode and the magnetic resonance image fusion display method according to claim 8, wherein the size of the first scale is eight pixels, and the size of the second scale is one pixel, The MRI image, the pre-implantation CT image, and the post-implantation CT image are all image files in DICOM format, and the required format is a DICOM file, a picture file, or a video file.
    10、一种实现如权利要求1所述的大脑皮层电极与磁共振图像融合显示的方法的装置,其特征在于,包括:10. A device for implementing a method for fused display of a cerebral cortex electrode and a magnetic resonance image according to claim 1, comprising:
    配准单元:用于将MRI图像和CT图像配准在同一个坐标空间下;Registration unit: used to register MRI images and CT images in the same coordinate space;
    电极信息提取单元:用于从配准后的CT图像中提取电极图像信息;An electrode information extracting unit: configured to extract electrode image information from the registered CT image;
    大脑皮层信息提取单元:用于从配准后的MRI图像中提取大脑皮层组织图像信息;Cerebral cortex information extraction unit: for extracting cerebral cortical tissue image information from the registered MRI image;
    信息融合单元:用于将所述电极图像信息和大脑皮层组织图像信息进行空间融合,并将空间融合后的信息通过三维可视化方法进行显示;The information fusion unit is configured to spatially fuse the electrode image information and the cerebral cortex tissue image information, and display the spatially fused information through a three-dimensional visualization method;
    显示效果调节单元:用于调节三维可视化显示的效果和角度,并将调节后的结果转换成需要的格式输出保存。Display effect adjustment unit: used to adjust the effect and angle of the 3D visual display, and convert the adjusted result into the required format output for saving.
    11、根据权利要求10所述的装置,其特征在于,所述配准单元进一步包括:The device according to claim 10, wherein the registration unit further comprises:
    坐标转换模块:用于将所述MRI图像和植入后CT图像转换到同一坐标系下,并将所述MRI图像的物理中心与植入后CT图像的物理中心移动到同一个点;a coordinate conversion module: configured to convert the MRI image and the post-implant CT image into the same coordinate system, and move the physical center of the MRI image to the same point of the physical center of the post-implant CT image;
    植入后旋转平移比对模块:用于使用第一尺度分别对所述MRI图像中的部分图像像素和植入后CT图像中的部分图像像素进行旋转、平移和比对,直到所述MRI图像的轮廓与所述植入后CT图像的轮廓的相似度达到第一相似度;Post-implantation rotational translation alignment module for respectively rotating, translating and comparing partial image pixels in the MRI image and partial image pixels in the post-implant CT image using the first scale until the MRI image The similarity between the contour of the CT image and the contour of the post-implant CT image reaches a first similarity;
    植入后旋转平移模块:用于使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入后CT图像中的部分图像像素再次进行旋转和平移;所述第一尺度所包含的像素个数大于所述第二尺度所包含的像素个数;Post-implantation rotation translation module: for rotating and translating partial image pixels in the MRI image after the first scale adjustment and partial image pixels in the post-implant CT image using the second scale; The number of pixels included is greater than the number of pixels included in the second scale;
    植入后相似度判断模块:用于判断经过第二尺度调节后的MRI图像和植入后CT图像对应位置像素的相似度是否达到第二相似度,如是,结束配准过程;否则,继续进行第二尺度的调节;所述第二相似度大于所述第一相似度。Post-implantation similarity judgment module: for judging whether the similarity between the MRI image adjusted by the second scale and the pixel corresponding to the post-implantation CT image reaches the second similarity, and if so, ending the registration process; otherwise, proceeding The adjustment of the second scale; the second similarity is greater than the first similarity.
    12、根据权利要求11所述的装置,其特征在于,所述电极信息提取单元进一步包括:The device according to claim 11, wherein the electrode information extracting unit further comprises:
    灰度阈值设定模块:用于设定配准后的CT图像的灰度阈值范围,所述设定的灰度阈值范围将电极图像包括在内; Grayscale threshold setting module: configured to set a grayscale threshold range of the registered CT image, the set grayscale threshold range including the electrode image;
    电极图像提取模块:用于将图像灰度落在设定的灰度阈值范围内的图像提取出来作为电极图像信息。Electrode image extraction module: an image for extracting an image gray scale within a set grayscale threshold range as electrode image information.
    13、根据权利要求11所述的装置,其特征在于,所述装置还包括:13. Apparatus according to claim 11 wherein said apparatus further comprises:
    植入前配准单元:用于将所述MRI图像和植入前CT图像配准在同一个坐标空间下。Pre-implantation registration unit: for registering the MRI image and the pre-implantation CT image in the same coordinate space.
    14、根据权利要求13所述的装置,其特征在于,所述植入前配准单元进一步包括:14. The device of claim 13, wherein the pre-implantation registration unit further comprises:
    植入前坐标转换模块:用于将所述MRI图像和植入前CT图像转换到同一坐标系下,并将所述MRI图像的物理中心与植入前CT图像的物理中心移动到同一个点;Pre-implantation coordinate conversion module: for converting the MRI image and the pre-implant CT image into the same coordinate system, and moving the physical center of the MRI image to the same point as the physical center of the pre-implant CT image ;
    植入前旋转平移比对模块:用于使用第一尺度分别对所述MRI图像中的部分图像像素和植入前CT图像中的部分图像像素进行旋转、平移和比对,直到所述MRI图像的轮廓与所述植入前CT图像的轮廓的相似度达到第一相似度;Pre-implantation rotational translation alignment module: for respectively rotating, translating and comparing partial image pixels in the MRI image and partial image pixels in the pre-implant CT image using the first scale until the MRI image The similarity between the contour of the CT image and the contour of the pre-implant CT image reaches a first similarity;
    植入前旋转平移模块:用于使用第二尺度将经过第一尺度调节后的MRI图像中的部分图像像素和植入前CT图像中的部分图像像素再次进行旋转和平移;所述第一尺度所包含的像素个数大于所述第二尺度所包含的像素个数;a pre-implantation rotation translation module for rotating and translating a partial image pixel in the first scale-adjusted MRI image and a partial image pixel in the pre-implant CT image using a second scale; The number of pixels included is greater than the number of pixels included in the second scale;
    植入前相似度判断模块:用于判断经过第二尺度调节后的MRI图像和植入前CT图像对应位置像素的相似度是否达到第二相似度,如是,结束配准过程;否则,返回继续进行第二尺度调节;所述第二相似度大于所述第一相似度。The pre-implantation similarity judgment module is configured to determine whether the similarity between the MRI image adjusted by the second scale and the pixel corresponding to the pre-implant CT image reaches a second similarity, and if so, the registration process ends; otherwise, return to continue Performing a second scale adjustment; the second similarity is greater than the first similarity.
    15、根据权利要求14所述的装置,其特征在于,所述配准后的CT图像包括配准后的植入前CT图像和配准后的植入后CT图像,所述电极信息提取单元进一步包括:15. The apparatus according to claim 14, wherein the registered CT image comprises a pre-implantation CT image after registration and a post-implantation CT image after registration, the electrode information extraction unit Further includes:
    CT图像相减模块:将所述配准后的植入后CT图像减去所述配准后的植入前CT图像剩下灰度差值不为0的部位即为电极图像信息。The CT image subtraction module: the post-implantation CT image after the registration is subtracted from the pre-implantation CT image, and the portion where the gradation difference value is not 0 is the electrode image information.
    16、根据权利要求10至15任意一项所述的装置,其特征在于,所述大脑皮层信息提取单元进一步包括:The apparatus according to any one of claims 10 to 15, wherein the cerebral cortex information extracting unit further comprises:
    种子点选取模块:用于从经过配准后的MRI图像中任意选取一个种子点;Seed point selection module: for arbitrarily selecting a seed point from the registered MRI image;
    设定区间内种子点选取模块:用于在以所述种子点为中心、半径为第一设定值的区域中选取其像素值落在设定区间内的点,并将其纳入到所述种子点所在的区域;a seed point selection module for setting an interval: for selecting a point whose pixel value falls within a set interval in an area centered on the seed point and having a radius of a first set value, and incorporating the The area where the seed point is located;
    设定区间内像素值判断模块:用于将所述半径进行扩大,并判断扩大后的区域中是否还存在其像素值落在所述设定区间内的点,如是,将其纳入到所述种子点所在的区域;否则,将所述种子点所在的区域作为大脑皮层组织图像信息;Setting a pixel value judgment module in the interval: for expanding the radius, and determining whether there is a point in the enlarged region whose pixel value falls within the set interval, and if so, incorporating the radius The area where the seed point is located; otherwise, the area where the seed point is located is used as image information of the cerebral cortex tissue;
    像素值判断模块:用于继续进行设定区间内像素值的判断。The pixel value judgment module is configured to continue the determination of the pixel value in the set interval.
    17、根据权利要求16所述的装置,其特征在于,所述信息融合单元进一步包括:The apparatus according to claim 16, wherein the information fusion unit further comprises:
    数据类型转换模块:用于将所述电极图像信息的数据类型与所述大脑皮层组织图像信息的数据类型转换成相同的数据类型;a data type conversion module: configured to convert a data type of the electrode image information and a data type of the cerebral cortex tissue image information into the same data type;
    灰度值映射模块:用于通过设定的色彩映射表,分别将电极图像和大脑皮层组织图像中每个像素不同的灰度值映射成不同的颜色和透明度,分别调节其颜色和透明度;Gray value mapping module: for mapping different gray values of each pixel in the electrode image and the cerebral cortex tissue image into different colors and transparency through the set color mapping table, respectively adjusting the color and transparency thereof;
    图像显示模块:用于通过面绘制或体绘制将融合后的图像显示出来。Image display module: used to display the fused image by face drawing or volume drawing.
    18、根据权利要求17所述的装置,其特征在于,所述第一尺度的大小为八个像素,所述第二尺度的大小为一个像素,所述MRI图像、植入前CT图像和植入后CT图像均为DICOM格式的图像文件,所述需要的格式为DICOM文件、图片文件或视频文件。18. The apparatus according to claim 17, wherein said first size has a size of eight pixels, said second size has a size of one pixel, said MRI image, pre-implantation CT image and implant The CT images are all image files in DICOM format, and the required format is a DICOM file, a picture file or a video file.
PCT/CN2015/082501 2015-06-26 2015-06-26 Method and apparatus for fusion display of cerebral cortex electrode and magnetic resonance images WO2016206093A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/082501 WO2016206093A1 (en) 2015-06-26 2015-06-26 Method and apparatus for fusion display of cerebral cortex electrode and magnetic resonance images
CN201580003336.6A CN105849777B (en) 2015-06-26 2015-06-26 A kind of cerebral cortex electrode merges the method and device of display with magnetic resonance image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/082501 WO2016206093A1 (en) 2015-06-26 2015-06-26 Method and apparatus for fusion display of cerebral cortex electrode and magnetic resonance images

Publications (1)

Publication Number Publication Date
WO2016206093A1 true WO2016206093A1 (en) 2016-12-29

Family

ID=56580841

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082501 WO2016206093A1 (en) 2015-06-26 2015-06-26 Method and apparatus for fusion display of cerebral cortex electrode and magnetic resonance images

Country Status (2)

Country Link
CN (1) CN105849777B (en)
WO (1) WO2016206093A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110288641A (en) * 2019-07-03 2019-09-27 武汉瑞福宁科技有限公司 PET/CT and the different machine method for registering of MRI brain image, device, computer equipment and storage medium
CN112150419A (en) * 2020-09-10 2020-12-29 东软医疗系统股份有限公司 Image processing method and device and electronic equipment
CN114820406A (en) * 2020-10-30 2022-07-29 武汉联影医疗科技有限公司 Fusion image display method and device and medical image system

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3547252A4 (en) 2016-12-28 2019-12-04 Shanghai United Imaging Healthcare Co., Ltd. Multi-modal image processing system and method
TWI684994B (en) * 2018-06-22 2020-02-11 國立臺灣科技大學 Spline image registration method
CN109662778B (en) * 2019-03-01 2020-11-10 中国人民解放军国防科技大学 Human-computer interactive intracranial electrode positioning method and system based on three-dimensional convolution
CN110680312B (en) * 2019-09-17 2022-05-17 首都医科大学宣武医院 Method for making electrode brain gyrometer diagram
CN112164019A (en) * 2020-10-12 2021-01-01 珠海市人民医院 CT and MR scanning image fusion method
CN114631885A (en) * 2020-12-15 2022-06-17 上海微创卜算子医疗科技有限公司 Simulation system and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006075331A2 (en) * 2005-01-13 2006-07-20 Mazor Surgical Technologies Ltd. Image-guided robotic system for keyhole neurosurgery
US20090048507A1 (en) * 2007-08-07 2009-02-19 Thorsten Feiweier Method and apparatus for imaging functional and electrical activities of the brain
US20140039577A1 (en) * 2012-08-04 2014-02-06 Boston Scientific Neuromodulation Corporation Techniques and methods for storing and transferring registration, atlas, and lead information between medical devices
CN103932796A (en) * 2014-04-13 2014-07-23 北京师范大学 Encephalic electrode individualization locating method based on multimode medical image data fusion

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708293B (en) * 2012-05-14 2015-06-17 电子科技大学 Registration method of electrode model and head model
CN102814002B (en) * 2012-08-08 2015-04-01 深圳先进技术研究院 Cerebral magnetic stimulation navigation system and cerebral magnetic stimulation coil positioning method
KR101579110B1 (en) * 2013-09-16 2015-12-22 삼성전자주식회사 Method for generating magnetic resonance image, method for acquiring phase information of phase contrast image thereof, method for acquiring phase information of susceptibility weighted image thereof, and magnetic resonance i imaging apparatus thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006075331A2 (en) * 2005-01-13 2006-07-20 Mazor Surgical Technologies Ltd. Image-guided robotic system for keyhole neurosurgery
US20090048507A1 (en) * 2007-08-07 2009-02-19 Thorsten Feiweier Method and apparatus for imaging functional and electrical activities of the brain
US20140039577A1 (en) * 2012-08-04 2014-02-06 Boston Scientific Neuromodulation Corporation Techniques and methods for storing and transferring registration, atlas, and lead information between medical devices
CN103932796A (en) * 2014-04-13 2014-07-23 北京师范大学 Encephalic electrode individualization locating method based on multimode medical image data fusion

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HU , ZHENHONG ET AL.: "j?yú pícéng n? odiàn g?opín gamma shénj?ngzhèndàng de yu yáng? ngn éngq? dìngwèi", CBME 2013, 21 October 2013 (2013-10-21), pages 3 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110288641A (en) * 2019-07-03 2019-09-27 武汉瑞福宁科技有限公司 PET/CT and the different machine method for registering of MRI brain image, device, computer equipment and storage medium
CN112150419A (en) * 2020-09-10 2020-12-29 东软医疗系统股份有限公司 Image processing method and device and electronic equipment
CN114820406A (en) * 2020-10-30 2022-07-29 武汉联影医疗科技有限公司 Fusion image display method and device and medical image system

Also Published As

Publication number Publication date
CN105849777B (en) 2019-01-18
CN105849777A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
WO2016206093A1 (en) Method and apparatus for fusion display of cerebral cortex electrode and magnetic resonance images
WO2016126056A1 (en) Medical information providing apparatus and medical information providing method
CN110956633B (en) Rapid CT scanning method and system based on virtual stereotactic image
CN110033465B (en) Real-time three-dimensional reconstruction method applied to binocular endoscopic medical image
Naudi et al. The virtual human face: superimposing the simultaneously captured 3D photorealistic skin surface of the face on the untextured skin image of the CBCT scan
WO2016072586A1 (en) Medical image processing apparatus and method
WO2020151119A1 (en) Augmented reality method and apparatus for dental operation
WO2018066764A1 (en) System and method for generating images for implant evaluation
WO2020027377A1 (en) Device for providing 3d image registration and method therefor
JP2007152118A (en) Proper correlating method of position of two object medical image data sets
JP3910239B2 (en) Medical image synthesizer
WO2021141416A1 (en) Apparatus and method for generating three-dimensional model through data matching
WO2018066763A1 (en) System and method for generating images for implant evaluation
WO2019132244A1 (en) Method for generating surgical simulation information and program
WO2019045144A1 (en) Medical image processing apparatus and medical image processing method which are for medical navigation device
Andrews et al. Three-dimensional CT scan reconstruction for the assessment of congenital aural atresia
JP2005124617A (en) Medical image diagnosis support system
CN107993277B (en) priori knowledge-based reconstruction method of artificial bone repair model of damaged part
JP2005536236A (en) Medical viewing system with image adjustment means
WO2019045390A1 (en) Oral care system
WO2023153564A1 (en) Medical image processing method and apparatus
Guigou et al. Augmented reality based Transmodiolar Cochlear implantation
WO2023058994A1 (en) Method and device for orthodontic treatment result prediction based on deep learning
WO2020235784A1 (en) Nerve detection method and device
Hussain et al. Vision-based augmented reality system for middle ear surgery: evaluation in operating room environment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15895991

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.06.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 15895991

Country of ref document: EP

Kind code of ref document: A1