WO2021259391A2 - Image processing method and apparatus, and electronic device and storage medium - Google Patents

Image processing method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2021259391A2
WO2021259391A2 PCT/CN2021/122143 CN2021122143W WO2021259391A2 WO 2021259391 A2 WO2021259391 A2 WO 2021259391A2 CN 2021122143 W CN2021122143 W CN 2021122143W WO 2021259391 A2 WO2021259391 A2 WO 2021259391A2
Authority
WO
WIPO (PCT)
Prior art keywords
lesion
image
area
organ
pixel
Prior art date
Application number
PCT/CN2021/122143
Other languages
French (fr)
Chinese (zh)
Other versions
WO2021259391A3 (en
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 北京安德医智科技有限公司
Publication of WO2021259391A2 publication Critical patent/WO2021259391A2/en
Publication of WO2021259391A3 publication Critical patent/WO2021259391A3/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • 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/20036Morphological image processing
    • 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/30096Tumor; Lesion

Definitions

  • the present disclosure relates to the field of computer vision technology, and in particular to an image processing method and device, electronic equipment, and storage medium.
  • image recognition and analysis are widely used.
  • the recognition and analysis of lesion areas in medical images is the basis of disease diagnosis.
  • the doctor can manually measure the lesion area, obtain the morphological parameters of the lesion area, and give the diagnosis result.
  • the manual measurement of the diseased area by the doctor will have a difference in measurement consistency, which is more dependent on the doctor's diagnostic level and clinical experience, and some doctors may even experience misdiagnosis and missed diagnosis.
  • the computer-assisted identification and analysis of the lesion area requires doctors to assist in determining certain characteristic points and characteristic areas in medical images. For example, to calculate the morphological parameters of aneurysms in medical images, doctors are required to assist in determining the neck point of the tumor. Or tumor neck plane. However, in the process of doctor's assistance, it is easy to introduce artificial errors.
  • the present disclosure proposes an image processing method and device, electronic equipment, and storage medium.
  • an image processing method comprising: segmentation processing an image to be processed, determining an organ region corresponding to a target organ in the image to be processed, and The lesion area corresponding to the lesion; according to the position of the organ area and the lesion area, an abnormal sub-area is determined from the organ area, and the abnormal sub-area corresponds to the part of the organ that carries the lesion; according to the The positional relationship between the first pixel point in the abnormal sub-region and the second pixel point in the lesion area to determine the lesion interface between the abnormal sub-region and the lesion area; according to the lesion interface And the lesion area to determine the morphological analysis result of the lesion.
  • the boundary between the lesions includes: determining a boundary reference point from the first pixel point and the second pixel point according to the distance between the first pixel point and the second pixel point; The number of dividing reference points in the multiple reference planes is set, and the lesion interface is determined from the multiple reference planes, wherein the multiple reference planes are respectively perpendicular to each coordinate of the image coordinate system of the image to be processed axis.
  • determining a demarcation reference point from the first pixel and the second pixel according to the distance between the first pixel and the second pixel includes : For any first pixel, determine the first distance between the first pixel and each second pixel in the lesion area; if there is a first distance less than or equal to the distance threshold, Determine the first pixel point as a demarcation reference point; for any second pixel point, determine the second distance between the second pixel point and each first pixel point in the abnormal sub-region; In the case of a second distance less than or equal to the distance threshold, the second pixel point is determined as the demarcation reference point.
  • determining an abnormal sub-region from the organ area according to the positions of the organ area and the lesion area includes: obtaining a first spatial area circumscribing the lesion area; according to A preset expansion coefficient is used to expand the first spatial area to obtain an expanded second spatial area; among the second spatial areas, the spatial areas that belong to the organ area and do not belong to the lesion area, Determined as the abnormal sub-region.
  • the result of the morphological analysis of the lesion includes morphological parameters of the lesion, and the morphological parameters include a reference diameter, a maximum diameter, a width, and a height.
  • the boundary and the lesion area, and determining the morphological analysis result of the lesion includes: among the boundary reference points included in the lesion boundary, the distance between the two boundary reference points with the largest distance is determined as the The reference diameter of the lesion; among the second pixels included in the lesion area, the maximum distance between the second pixel and the geometric center of the interface of the lesion is determined as the maximum diameter of the lesion; in the lesion area Among the included second pixel points, in the direction perpendicular to the maximum diameter, the distance between the two second pixel points with the largest distance is determined as the width of the lesion; the second pixel included in the lesion area Among the points, the maximum distance between the second pixel point and the interface of the lesion is determined as the height of the lesion.
  • performing segmentation processing on the image to be processed, and determining the organ area corresponding to the target organ in the image to be processed, and the lesion area corresponding to the lesion on the target organ includes: Perform normalization processing on the image to obtain a processed first image; perform a first segmentation process on the first image to determine organ regions in the first image; perform a second segmentation process on the first image, Determine the lesion area in the first image.
  • performing a first segmentation process on the first image to determine the organ region in the first image includes: cutting the first image according to a first preset size, Obtain a first sampled image block; input the first sampled image block into a first segmentation network for segmentation to obtain a segmentation result of the first sampled image block; fuse the segmentation results of a plurality of first sampled image blocks, Obtaining the organ area in the first image;
  • performing a second segmentation process on the first image to determine the lesion area in the first image includes: cutting the first image according to a second preset size to obtain a second sampled image block; The second sampled image block is input into the second segmentation network for segmentation to obtain the segmentation result of the second sampled image block; the segmentation results of multiple second sampled image blocks are merged to obtain the first image Of the lesion area.
  • the image to be processed includes a three-dimensional angiographic image
  • the target organ includes a blood vessel
  • the lesion on the target organ includes an aneurysm
  • the abnormal sub-region includes a tumor-bearing artery region
  • the lesion interface includes the aneurysm neck plane.
  • an image processing device including: a segmentation module for performing segmentation processing on an image to be processed, determining an organ region corresponding to a target organ in the image to be processed, and The lesion area corresponding to the lesion on the organ; the abnormal sub-area determining module is used to determine the abnormal sub-area from the organ area according to the position of the organ area and the lesion area, and the abnormal sub-area corresponds to the bearing The organ part of the lesion; the lesion interface determination module, configured to determine the abnormal subregion according to the positional relationship between the first pixel point in the abnormal subregion and the second pixel point in the lesion region The lesion interface with the lesion area; the lesion analysis module is used to determine the morphological analysis result of the lesion according to the lesion interface and the lesion area.
  • an electronic device including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call the instructions stored in the memory to execute The above method.
  • a non-volatile computer-readable storage medium having computer program instructions stored thereon, and the computer program instructions implement the above method when executed by a processor.
  • the organ area and the lesion area are determined by segmenting the image to be processed, and the lesion interface is determined according to the positional relationship between the organ area and the lesion area; finally, the lesion interface is determined according to the lesion interface and the lesion area. Morphological analysis results of the lesion. This method can automatically and accurately determine the morphological analysis result of the lesion in the image, thereby reducing the workload of medical staff and improving the work efficiency of medical staff.
  • Fig. 1 shows a flowchart of an image processing method according to an embodiment of the present disclosure
  • Fig. 2 shows a schematic diagram of an abnormal sub-region according to an embodiment of the present disclosure
  • Fig. 3 shows a schematic diagram of a morphological analysis result of a lesion according to an embodiment of the present disclosure
  • Fig. 4 shows a block diagram of an image processing device according to an embodiment of the present disclosure
  • Figure 5 shows a block diagram of an electronic device according to an embodiment of the present disclosure
  • FIG. 6 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • Fig. 1 shows a flowchart of an image processing method according to an embodiment of the present disclosure. As shown in Fig. 1, the image processing method includes:
  • step S11 segmentation processing is performed on the image to be processed, and the organ area corresponding to the target organ in the image to be processed is determined, and the lesion area corresponding to the lesion on the target organ is determined;
  • step S12 according to the positions of the organ area and the lesion area, an abnormal sub-area is determined from the organ area, and the abnormal sub-area corresponds to the part of the organ that carries the lesion;
  • step S13 according to the positional relationship between the first pixel point in the abnormal sub-region and the second pixel point in the lesion area, the lesion division between the abnormal sub-region and the lesion area is determined. interface;
  • step S14 the morphological analysis result of the lesion is determined according to the interface of the lesion and the area of the lesion.
  • the image processing method can be executed by electronic devices such as a terminal device or a server, and the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, etc., and other processing equipment It can be a server or a cloud server, etc.
  • the image processing method may be implemented by a processor invoking computer-readable instructions stored in the memory.
  • the method can be executed by the server.
  • the image to be processed may be a medical image, which may be an image taken by various types of medical equipment, or an image used for medical diagnosis, for example, a computer tomography (Computed Tomography). , CT) images or MRI (Magnetic Resonance Imaging, MRI) images, etc.
  • CT computer tomography
  • MRI Magnetic Resonance Imaging
  • the present disclosure does not limit the type of image to be processed and the specific acquisition method.
  • the image to be processed may be a three-dimensional medical image, for example, including a three-dimensional angiography image.
  • the Coronal View, Sagittal View and Axial View can be set in the three-dimensional medical image;
  • the coronal position can mean the position where the human body is longitudinally cut into the front and back parts along the long axis of the human body
  • the sagittal position can mean the position where the human body is longitudinally cut into the left and right parts along the long axis of the human body
  • the axis position can mean the position along the long axis of the human body.
  • the human body is transversely cut into the upper and lower parts in the horizontal direction.
  • the coronal position, the sagittal position and the axial position can be equivalent to the position of the coordinate axis in the rectangular coordinate system formed by xyz.
  • the image to be processed includes a target organ and a lesion on the target organ.
  • the target organ of the image to be processed may be an intracranial blood vessel, a coronary artery of the heart, a pulmonary artery, etc., and a lesion on the target organ It may be an intracranial saccular aneurysm, coronary aneurysm, pulmonary aneurysm, etc.
  • the present disclosure does not limit specific target organs and lesions on the target organs. Among them, there may be one or more lesions on the target organ, and the present disclosure does not limit the number of lesions on the target organ.
  • the image to be processed may be preprocessed to facilitate subsequent image segmentation processing.
  • the preprocessing may include unifying the resolution of the physical space (Spacing) of the image to be processed, unifying the range of pixel values in the image to be processed, and performing regional cropping on the image to be processed, and so on.
  • the image size can be unified, the amount of data to be processed can be reduced, and subsequent image segmentation operations can be facilitated.
  • the present disclosure does not limit the specific content and processing method of preprocessing.
  • the image to be processed may be segmented to determine the organ region corresponding to the target organ in the image to be processed, and the lesion corresponding to the lesion on the target organ Area; wherein the target organ includes, for example, blood vessels, and the lesion on the target organ includes, for example, aneurysms.
  • the image to be processed is a three-dimensional medical image, and the image may include a target organ and one or more lesions on the target organ.
  • a segmentation result can be obtained, the result including the organ area corresponding to the target organ in the image to be processed, and the lesion area corresponding to the lesion on the target organ.
  • the image to be processed is an intracranial angiography image, and segmentation of the image can be performed to obtain the segmentation result.
  • the result includes the blood vessel area in the intracranial angiography image and the lesion where one or more aneurysms on the blood vessel are located. area.
  • the target organ and the lesion on the target organ are in a state of adhesion on the image to be processed, there may be overlapping areas between the organ area and the lesion area determined after the segmentation process, that is, there may be One or more pixels belong to both the organ area and the lesion area.
  • the segmentation result in the process of performing segmentation processing on the image to be processed, can be obtained through one segmentation processing.
  • each pixel in the organ area can be marked as 1
  • each pixel in the lesion area carried on the organ can be marked as 2
  • each pixel in other background areas can be marked as 0.
  • the segmentation result can be obtained through two segmentation processing. That is, the first segmentation process can be performed on the image to be processed to obtain the first segmentation result. In the first segmentation result, each pixel in the organ area can be marked as 1, and each pixel in the background area outside the organ area can be marked as 0. . According to the first segmentation result, the organ region of the image to be processed can be determined.
  • the second segmentation result can be obtained by performing the second segmentation process on the image to be processed. In the second segmentation result, each pixel in the lesion area carried on the target organ can be marked as 1, and each pixel in the background area outside the lesion area can be Marked as 0. According to the second segmentation result, the lesion area of the image to be processed can be determined.
  • the present disclosure can perform the first segmentation processing and the second segmentation processing on the image to be processed in parallel, or perform the second segmentation processing on the image to be processed first, and then perform the first segmentation processing.
  • an abnormal sub-region is determined from the organ region according to the positions of the organ region and the lesion region, and the abnormal sub-region corresponds to bearing the lesion.
  • the abnormal sub-region includes, for example, the tumor-bearing artery region.
  • the organ area contains a large amount of pixel data
  • the data of some pixels in the organ area far away from the lesion area does not affect the shape of the lesion Learn to analyze the results.
  • an abnormal sub-area that will affect the morphological analysis result of the lesion can be determined from the organ area.
  • the abnormal sub-area corresponds to the bearing lesion.
  • Organ part that is, the sub-area part of the organ area adjacent to the lesion area.
  • each lesion in the lesion area corresponds to an abnormal sub-area
  • the organ area may include one or more abnormal sub-areas.
  • the present disclosure can determine the abnormal sub-regions corresponding to each lesion one by one, or determine the abnormal sub-regions corresponding to each lesion in parallel, which is not limited in the present disclosure.
  • step S13 according to the positional relationship between the first pixel point in the abnormal sub-region and the second pixel point in the lesion area, it is determined that the abnormal sub-region and The lesion interface between the lesion areas.
  • the lesion interface includes, for example, the aneurysm neck plane.
  • the abnormal sub-area is the tumor-bearing blood vessel area in the blood vessel area
  • the lesion area is the aneurysm area.
  • the carrier can be determined according to the positional relationship between the first pixel in the tumor-bearing blood vessel area and the second pixel in the aneurysm area. The interface between the tumor blood vessel area and the aneurysm area, which is the plane of the tumor neck.
  • step S14 the morphological analysis result of the lesion is determined according to the interface of the lesion and the area of the lesion.
  • the lesion interface and the lesion area can be obtained according to the above steps, and the morphological analysis result of the lesion can be determined. That is, the morphological analysis result of the lesion area can be determined according to the positional relationship between the boundary reference point in the lesion interface and the second pixel point in the lesion area.
  • the morphological analysis result of the lesion may include multiple morphological parameters of the lesion, for example, the reference diameter, maximum diameter, width, and height of the lesion.
  • the morphological analysis results of the lesion can be automatically determined without the assistance of the doctor, which can avoid errors caused by the doctor’s manual intervention, improve the accuracy of the morphological analysis results of the lesion, and reduce the doctor’s Workload, improve the work efficiency of medical staff.
  • step S11 may include: performing normalization processing on the image to be processed to obtain a processed first image; performing a first segmentation process on the first image to determine that the first image is The organ area of the first image is subjected to a second segmentation process to determine the lesion area in the first image.
  • the image to be processed is normalized, that is, the pixel value of each pixel in the image to be processed is normalized to a value range of 0-1, so as to improve the processing efficiency.
  • the image to be processed is an 8-bit grayscale image and the pixel value of each pixel ranges from 0 to 255
  • the pixel value of each pixel can be divided by 255 to normalize the pixel value of each pixel in the image to be processed to Within the value range of 0-1.
  • the first image can be obtained.
  • the normalization method may include, but is not limited to, linear function normalization (Min-Max Scaling), zero-mean normalization (Z-Score Standardization), non-linear normalization, etc.
  • the present disclosure does not limit the normalization method .
  • the first segmentation process can be performed on the first image, and the first segmentation result can be obtained.
  • the result includes the organ region where the target organ is located, and The background area outside the organ area.
  • the first image is a normalized intracranial angiography (CT Angiography, CTA) image.
  • CT Angiography CTA
  • the first segmentation process can be performed on the image, and the first segmentation result obtained is the blood vessel in the intracranial angiography image. Area, and the background area outside the blood vessel area.
  • the first segmentation result may be a binary label, that is, the blood vessel area in the intracranial angiography image is marked as 1, and the background area outside the blood vessel area is marked as 0.
  • the first segmentation network may be preset to perform the first segmentation processing on the first image to determine the organ region where the target organ is located in the first image.
  • the first segmentation network can be a deep convolutional neural network, including multiple convolutional layers, multiple deconvolutional layers, fully connected layers, etc.
  • the specific segmentation networks that can be used include but are not limited to U Network (U-Network, U-Network). NET), V-Network (V-NET) and other network structures. The present disclosure does not limit the specific network structure of the first segmented network.
  • the result includes the lesion area where the lesion on the target organ is located and the background area outside the lesion area.
  • the first image is a normalized intracranial angiography (CT Angiography, CTA) image
  • CT Angiography, CTA intracranial angiography
  • the second segmentation process can be performed on the image to obtain the second segmentation result, that is, the blood vessels in the intracranial angiography image
  • the aneurysm area on the area, and the background area outside the aneurysm area; where the second segmentation result can be a binary label, that is, the aneurysm area in the intracranial angiography image is marked as 1, and the background outside the blood vessel area The area is marked as 0.
  • a second segmentation network may be preset to perform a second segmentation process on the second image to determine the lesion area where the lesion on the target organ in the second image is located.
  • the second segmentation network can be a deep convolutional neural network, including multiple convolutional layers, multiple deconvolutional layers, fully connected layers, etc.
  • the specific segmentation networks that can be used include but are not limited to U Network (U-Network, U-Network). NET), V-Network (V-NET) and other network structures. The present disclosure does not limit the specific network structure of the second split network.
  • the organ area and the lesion area in the first image can be automatically segmented without the assistance of a doctor.
  • performing a first segmentation process on the first image in step S11 to determine the organ region in the first image includes: performing a first segmentation process on the first image according to a first preset size Perform cutting to obtain a first sampled image block; input the first sampled image block into a first segmentation network for segmentation to obtain a segmentation result of the first sampled image block; segmentation results for a plurality of first sampled image blocks Performing fusion to obtain the organ region in the first image;
  • the first preset size may be set so that the sizes of the first sampled image blocks input to the first segmentation network are consistent. For example, suppose the size of the first image is 256 ⁇ 512 ⁇ 512, that is, there are 256 pixels in the z-axis direction (that is, the direction of the medical image slice pitch), and the x-axis (width) direction and the y-axis (height) direction are respectively 512 pixels.
  • the first preset size can be set to 64 ⁇ 384 ⁇ 384, that is, there are 64 pixels in the z-axis direction, and 384 pixels in the x-axis direction and y-axis direction respectively.
  • the first image can be cut with overlap in the x-axis direction, y-axis direction and z-axis direction according to a fixed cutting step length to obtain multiple cut image blocks with a first preset size of 64 ⁇ 384 ⁇ 384.
  • Each cut image block is the first sampled image block. Part of the image areas of the adjacent multiple first sampled image blocks overlap.
  • the number of first sampled image blocks and the size of the overlapping area of each first sampled image block can be determined according to the first preset size and the cutting step.
  • the present disclosure does not limit the first preset size and cutting step length.
  • the multiple first sampling image blocks are input into the first segmentation network for processing, and the segmentation results of the multiple first sampling blocks can be obtained. According to the cutting position of each first sampled image block, multiple first sampled image blocks can be merged to obtain the first segmentation result.
  • each pixel in the process of fusing multiple first sampled image blocks, each pixel can be respectively fused according to the coordinate position in the first image corresponding to each first sampled image block, to obtain the same size as the first image Fusion result.
  • the fusion result includes the probability that each pixel in the first image belongs to the organ area.
  • the predicted probability that each pixel belongs to the organ area can be binarized based on a preset threshold. For example, each pixel that is larger than the preset threshold can be binarized. Marked as 1, the area it represents is the organ area; each pixel that is less than or equal to the preset threshold can be marked as 0, and the area it represents is the background area.
  • each connected domain that is, the connected domain formed by the pixels marked as 1
  • remove the connected domains whose volume is less than a certain threshold to obtain the first segmentation result. That is, the organ area in the first image.
  • the first image is overlapped and cut, and each acquired first sampled image block is input into the first segmentation network to obtain the segmentation results of multiple first sampled image blocks.
  • the first image is divided into multiple first sampled image blocks.
  • the segmentation results of the sampled image blocks are fused to obtain the organ regions in the first image, which can make full use of the information in the first image to improve the accuracy of image segmentation.
  • performing a second segmentation process on the first image to determine the lesion area in the first image includes: cutting the first image according to a second preset size, Obtain a second sampled image block; input the second sampled image block into a second segmentation network for segmentation to obtain a segmentation result of the second sampled image block; fuse the segmentation results of a plurality of second sampled image blocks, Obtain the lesion area in the first image.
  • the second preset size may be the same as the first preset size, or may be different from the first preset size, which is not limited in the present disclosure.
  • the segmentation process is performed in step S11, and after the segmentation result is obtained, the abnormal subregion can be determined in step S12 according to the organ area and the lesion area in the segmentation result.
  • step S12 may include: obtaining a first spatial area circumscribing the lesion area; expanding the first spatial area according to a preset expansion coefficient to obtain an expanded second Spatial area; in the second spatial area, a spatial area that belongs to the organ area and does not belong to the lesion area is determined as the abnormal sub-area.
  • FIG. 2 shows a schematic diagram of an abnormal sub-region according to an embodiment of the present disclosure.
  • the first spatial area circumscribed by the lesion area (the aneurysm area shown in FIG. 2 ), that is, the area of the dashed frame A1 shown in FIG. 2 is obtained.
  • the geometric center of the circumscribed first space area is calculated, and the geometric center is taken as the center, and the first space area is expanded according to the preset expansion coefficient to obtain the expanded second space area, which is shown in Figure 2.
  • the spatial region that belongs to the organ region (the blood vessel region in Figure 2) and does not belong to the lesion region (the aneurysm region in Figure 2) is determined as The abnormal sub-area is the gray area in FIG. 2.
  • the first spatial region circumscribed by the lesion area may be a rectangular parallelepiped, a sphere, an ellipsoid, or other three-dimensional geometric figures, and the present disclosure does not limit the specific shape of the first spatial region.
  • the preset expansion coefficient is a positive real number greater than 1, which can be set according to the experience of the clinician. The present disclosure does not limit the value of the specific expansion coefficient.
  • the lesion area may include one or more connected areas, and each connected area may correspond to a lesion.
  • the image processing method of the present disclosure can process each connected area in the lesion area in parallel according to the method in step S12 to obtain an abnormal sub-region corresponding to each connected area.
  • the abnormal sub-area can be determined from the organ area, which can eliminate the overlap between the abnormal sub-area and the lesion area, which not only reduces the amount of processing to be processed, improves the calculation efficiency, but also benefits Improve the accuracy of the lesion interface in the subsequent steps.
  • the lesion interface can be determined according to the abnormal subregion and the lesion region in step S13.
  • step S13 may include: determining from the first pixel point and the second pixel point according to the distance between the first pixel point and the second pixel point Demarcation reference points; according to the number of demarcation reference points in a plurality of preset reference planes, a lesion interface is determined from the plurality of reference planes, wherein the plurality of reference planes are respectively perpendicular to the image to be processed Each coordinate axis of the image coordinate system.
  • the distance threshold can be set according to the clinician's experience, which is not limited in the present disclosure.
  • the demarcation reference points After the demarcation reference points are obtained, the number of demarcation reference points in each of the multiple preset reference planes can be detected, the reference plane containing the most demarcation reference points can be determined, and the demarcation reference points in the reference plane can be formed
  • the area is determined to be the boundary of the lesion.
  • a plurality of preset reference planes are respectively perpendicular to each coordinate axis of the image coordinate system of the image to be processed.
  • the image coordinate system of the image to be processed is an xyz rectangular coordinate system
  • each coordinate axis is an x-axis, a y-axis, and a z-axis.
  • the reference plane may include planes perpendicular to the x-axis (that is, parallel to the yoz plane), the y-axis (that is, parallel to the xoz plane), and the z-axis (that is, parallel to the xoy plane).
  • doctors can determine the interface of the lesion based on the coronal, sagittal or axial two-dimensional slice images.
  • the reference plane preset in the present disclosure can represent the coronal, sagittal Each two-dimensional slice image on the position or axis position.
  • step S13 according to the distance between the first pixel and the second pixel, a boundary reference is determined from the first pixel and the second pixel. Points, including:
  • any first pixel determine the first distance between the first pixel and each second pixel in the lesion area; if there is a first distance less than or equal to the distance threshold, change The first pixel point is determined as a demarcation reference point;
  • the second pixel point is determined as the demarcation reference point.
  • the first distance L i1 between the first pixel point P i and the second pixel point Q 1
  • the first distance Li2 between the first pixel point P i and the second pixel point Q 2
  • the distance threshold can be set according to the experience of the clinician, which is not limited in the present disclosure.
  • any second pixel point Q j determine the second distance L ji between the second pixel point Q j and each first pixel point P i (that is, P 1 , P 2 ,..., P N1)
  • the second pixel point Q j is determined as the demarcation reference point.
  • the demarcation reference point can be automatically determined according to the distance between the first pixel and the second pixel.
  • This method is simple and convenient, easy to implement, and is beneficial to the rapid determination of the subsequent lesion interface.
  • the morphological analysis result of the lesion can be determined according to the lesion interface and the lesion area in step S14.
  • the morphological analysis result of the lesion includes morphological parameters of the lesion, and the morphological parameters include a reference diameter, a maximum diameter, a width, and a height.
  • Step S14 may include:
  • the distance between the two demarcation reference points with the largest distance is determined as the reference diameter of the lesion
  • the distance between the two second pixel points with the largest distance is determined as the width of the lesion
  • the maximum distance between the second pixel and the interface of the lesion is determined as the height of the lesion.
  • FIG. 3 shows a schematic diagram of a morphological analysis result of a lesion according to an embodiment of the present disclosure.
  • the distance between points M2 is the largest.
  • the distance between the demarcation reference point M1 and the demarcation reference point M2 can be determined as the reference diameter of the lesion, that is, the tumor neck shown in FIG. 3.
  • the distance between the second pixel point M3 and the geometric center M0 of the interface of the lesion is the largest.
  • the distance between the second pixel point M3 and the geometric center M0 of the interface of the lesion can be determined as the maximum diameter of the lesion.
  • the distance between the second pixel point M4 and the second pixel point M5 is the largest, and the second pixel point M4 and the second pixel point M5 can be separated The distance between them is determined as the width of the lesion, that is, the width of the tumor as shown in Figure 3.
  • the direction of the largest diameter is the direction of the straight line determined by the geometric center M0 of the interface between the second pixel point M3 and the lesion.
  • the distance between the second pixel point M3 and the plane where the lesion interface is located is the largest, and the vertical foot from the second pixel point M3 to the plane where the lesion interface is located is M6.
  • the distance between the point M3 and the plane where the interface of the lesion is located is determined as the height of the lesion, that is, the height of the tumor as shown in FIG. 3.
  • the morphological analysis result of the lesion is determined according to the lesion interface and the area of the lesion, and the morphological analysis result of the lesion can be determined automatically and accurately without the assistance of the doctor, which reduces the workload of the doctor and improves The efficiency of the doctor’s diagnosis and treatment.
  • the organ area and the lesion area can be determined by segmentation of the image to be processed, and the lesion interface can be determined according to the positional relationship between the organ area and the lesion area; finally according to the lesion interface As well as the area of the lesion, the morphological analysis result of the lesion is determined.
  • This method can automatically and accurately determine the morphological analysis result of the lesion in the image, thereby reducing the workload of medical staff and improving the work efficiency of medical staff.
  • the present disclosure also provides image processing devices, electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any image processing method provided in the present disclosure.
  • image processing devices electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any image processing method provided in the present disclosure.
  • Fig. 4 shows a block diagram of an image processing device according to an embodiment of the present disclosure. As shown in Fig. 4, the device includes:
  • the segmentation module 41 is configured to perform segmentation processing on the image to be processed, and determine the organ area corresponding to the target organ in the image to be processed, and the lesion area corresponding to the lesion on the target organ;
  • the abnormal sub-region determination module 42 is configured to determine an abnormal sub-region from the organ region according to the positions of the organ region and the lesion region, and the abnormal sub-region corresponds to the part of the organ that carries the lesion;
  • the lesion interface determination module 43 is configured to determine the difference between the abnormal sub-region and the lesion area according to the positional relationship between the first pixel point in the abnormal sub-region and the second pixel point in the lesion area The interface between the lesions;
  • the lesion analysis module 44 is configured to determine the morphological analysis result of the lesion according to the interface of the lesion and the area of the lesion.
  • the segmentation module 41 includes: a preprocessing sub-module 411: used to normalize the image to be processed to obtain the processed first image; the first segmentation sub-module 412: used to Perform a first segmentation process on the first image to determine the organ region in the first image; a second segmentation sub-module 413: perform a second segmentation process on the first image to determine the organ region in the first image The lesion area.
  • the first segmentation submodule 412 is configured to: cut the first image according to a first preset size to obtain a first sampled image block; and input the first sampled image block Perform segmentation in the first segmentation network to obtain a segmentation result of the first sampled image block; fuse the segmentation results of a plurality of first sampled image blocks to obtain the organ region in the first image;
  • the second segmentation submodule 413 is configured to: cut the first image according to a second preset size to obtain a second sampled image block; input the second sampled image block into a second segmentation network for segmentation , Obtain the segmentation result of the second sampled image block; fuse the segmentation results of multiple second sampled image blocks to obtain the lesion area in the first image.
  • the abnormal sub-region determination module 42 is configured to: obtain a first spatial region circumscribed to the lesion area; expand the first spatial region according to a preset expansion coefficient to obtain the expansion The second spatial area after the second spatial area; in the second spatial area, a spatial area that belongs to the organ area and does not belong to the lesion area is determined as the abnormal sub-area.
  • the lesion interface determination module 43 is configured to: according to the distance between the first pixel point and the second pixel point, from the first pixel point and the second pixel point The demarcation reference point is determined from the points; and the lesion demarcation interface is determined from the multiple reference planes according to the number of the demarcation reference points in the preset multiple reference planes, wherein the multiple reference planes are respectively perpendicular to the Each coordinate axis of the image coordinate system of the image to be processed.
  • determining a demarcation reference point from the first pixel and the second pixel according to the distance between the first pixel and the second pixel includes : For any first pixel, determine the first distance between the first pixel and each second pixel in the lesion area; if there is a first distance less than or equal to the distance threshold, Determine the first pixel point as a demarcation reference point; for any second pixel point, determine the second distance between the second pixel point and each first pixel point in the abnormal sub-region; In the case of a second distance less than or equal to the distance threshold, the second pixel point is determined as the demarcation reference point.
  • the morphological analysis result of the lesion includes morphological parameters of the lesion, and the morphological parameters include a reference diameter, a maximum diameter, a width, and a height
  • the lesion analysis module 44 is configured to : Among the demarcation reference points included in the lesion interface, the distance between the two demarcation reference points with the largest distance is determined as the reference diameter of the lesion; among the second pixel points included in the lesion area, the The maximum distance between the second pixel point and the geometric center of the interface of the lesion is determined as the maximum diameter of the lesion; among the second pixel points included in the lesion area, in the direction perpendicular to the maximum diameter, The distance between the two second pixels with the largest distance is determined as the width of the lesion; among the second pixels included in the lesion area, the maximum distance between the second pixel and the interface of the lesion is determined Is the height of the lesion.
  • the image to be processed includes a three-dimensional angiographic image
  • the target organ includes a blood vessel
  • the lesion on the target organ includes an aneurysm
  • the abnormal sub-region includes a tumor-bearing artery region
  • the lesion interface includes the aneurysm neck plane.
  • the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
  • the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above-mentioned method when executed by a processor.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium.
  • An embodiment of the present disclosure also proposes an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
  • the electronic device can be provided as a terminal, server or other form of device.
  • FIG. 5 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure.
  • the electronic device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and other terminals.
  • the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, and a sensor component 814 , And communication component 816.
  • the processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method.
  • the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components.
  • the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
  • the memory 804 is configured to store various types of data to support operations in the electronic device 800. Examples of these data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc.
  • the memory 804 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable and Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable and Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic Disk Magnetic Disk or Optical Disk.
  • the power supply component 806 provides power for various components of the electronic device 800.
  • the power supply component 806 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the electronic device 800.
  • the multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 810 is configured to output and/or input audio signals.
  • the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal.
  • the received audio signal may be further stored in the memory 804 or transmitted via the communication component 816.
  • the audio component 810 further includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module.
  • the above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
  • the sensor component 814 includes one or more sensors for providing the electronic device 800 with various aspects of state evaluation.
  • the sensor component 814 can detect the on/off status of the electronic device 800 and the relative positioning of the components.
  • the component is the display and the keypad of the electronic device 800.
  • the sensor component 814 can also detect the electronic device 800 or the electronic device 800.
  • the position of the component changes, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration/deceleration of the electronic device 800, and the temperature change of the electronic device 800.
  • the sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
  • the sensor component 814 may also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, for use in imaging applications.
  • CMOS complementary metal oxide semiconductor
  • CCD charge coupled device
  • the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices.
  • the electronic device 800 can access a wireless network based on communication standards, such as wireless network (WiFi), second-generation mobile communication technology (2G), third-generation mobile communication technology (3G), fourth-generation mobile communication technology (4G) or The fifth-generation mobile communication technology (5G), or a combination of them.
  • the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field-available A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • ASIC application-specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing devices
  • PLD programmable logic devices
  • FPGA field-available A programmable gate array
  • controller microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • a non-volatile computer-readable storage medium such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to complete the foregoing method.
  • FIG. 6 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure.
  • the electronic device 1900 may be provided as a server. 6
  • the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as application programs.
  • the application program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions.
  • the processing component 1922 is configured to execute instructions to perform the above-mentioned method.
  • the electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) interface 1958 .
  • the electronic device 1900 can operate based on the operating system stored in the memory 1932, such as the Microsoft Server Operating System (Windows ServerTM), the graphical user interface operating system (Mac OS XTM) launched by Apple, and the multi-user and multi-process computer operating system (UnixTM) ), free and open source Unix-like operating system (LinuxTM), open source Unix-like operating system (FreeBSDTM) or similar.
  • Windows ServerTM Microsoft Server Operating System
  • Mac OS XTM graphical user interface operating system
  • UnixTM multi-user and multi-process computer operating system
  • LinuxTM free and open source Unix-like operating system
  • FreeBSDTM open source Unix-like operating system
  • a non-volatile computer-readable storage medium is also provided, such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to complete the foregoing method.
  • the present disclosure may be a system, method and/or computer program product.
  • the computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure.
  • the computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Non-exhaustive list of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a printer with instructions stored thereon
  • RAM random access memory
  • ROM read-only memory
  • EPROM erasable programmable read-only memory
  • flash memory flash memory
  • SRAM static random access memory
  • CD-ROM compact disk read-only memory
  • DVD digital versatile disk
  • memory stick floppy disk
  • mechanical encoding device such as a printer with instructions stored thereon
  • the computer-readable storage medium used here is not interpreted as a transient signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission of electrical signals.
  • the computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • the network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device .
  • the computer program instructions used to perform the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, status setting data, or in one or more programming languages.
  • Source code or object code written in any combination, the programming language includes object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages.
  • Computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on a remote computer, or entirely on the remote computer or server implement.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect to the user's computer) connect).
  • LAN local area network
  • WAN wide area network
  • an electronic circuit such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be personalized by using the status information of the computer-readable program instructions.
  • FPGA field programmable gate array
  • PDA programmable logic array
  • the computer-readable program instructions are executed to realize various aspects of the present disclosure.
  • These computer-readable program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine that makes these instructions when executed by the processor of the computer or other programmable data processing device , A device that implements the functions/actions specified in one or more blocks in the flowchart and/or block diagram is produced. It is also possible to store these computer-readable program instructions in a computer-readable storage medium. These instructions make computers, programmable data processing apparatuses, and/or other devices work in a specific manner, so that the computer-readable medium storing the instructions includes An article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagram can represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction contains one or more components for realizing the specified logical function.
  • Executable instructions can be included in the blocks in the flowchart or block diagram.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the computer program product can be specifically implemented by hardware, software, or a combination thereof.
  • the computer program product is specifically embodied as a computer storage medium.
  • the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc. Wait.
  • SDK software development kit

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Apparatus For Radiation Diagnosis (AREA)
  • Magnetic Resonance Imaging Apparatus (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

The present disclosure relates to an image processing method and apparatus, and an electronic device and a storage medium. The method comprises: segmenting an image to be processed, and determining an organ region corresponding to a target organ in said image, and a lesion region corresponding to a lesion on the target organ; according to the positions of the organ region and the lesion region, determining, from the organ region, an abnormal sub-region which may correspond to an organ part bearing the lesion; determining a lesion interface between the abnormal sub-region and the lesion region according to a positional relationship between a first pixel point in the abnormal sub-region and a second pixel point in the lesion region; and according to the lesion interface and the lesion region, determining a morphological analysis result of the lesion. According to the embodiments of the present disclosure, a morphological analysis result of a lesion in an image can be automatically and accurately determined, such that the workload of medical staff is reduced, and the working efficiency of medical staff is improved.

Description

图像处理方法及装置、电子设备和存储介质Image processing method and device, electronic equipment and storage medium 技术领域Technical field
本公开涉及计算机视觉技术领域,尤其涉及一种图像处理方法及装置、电子设备和存储介质。The present disclosure relates to the field of computer vision technology, and in particular to an image processing method and device, electronic equipment, and storage medium.
背景技术Background technique
在计算机视觉技术领域,图像识别与分析的应用非常广泛,例如,在医学影像中对病灶区域的识别与分析是疾病诊断的基础。In the field of computer vision technology, image recognition and analysis are widely used. For example, the recognition and analysis of lesion areas in medical images is the basis of disease diagnosis.
相关技术中,医学影像中病灶区域的识别与形态学分析有两类方法。In related technologies, there are two types of methods for the identification and morphological analysis of the lesion area in medical images.
第一,通过医生判读医学影像对病灶区域进行识别与分析,医生可以对病灶区域进行手动测量,得到病灶区域的形态学参数,给出诊断结果。然而,医生对病灶区域的手动测量,会出现测量一致性差异,比较依赖医生的诊断水平和临床经验,甚至有的医生的可能会出现误诊和漏诊的情况。First, through the doctor's interpretation of medical images to identify and analyze the lesion area, the doctor can manually measure the lesion area, obtain the morphological parameters of the lesion area, and give the diagnosis result. However, the manual measurement of the diseased area by the doctor will have a difference in measurement consistency, which is more dependent on the doctor's diagnostic level and clinical experience, and some doctors may even experience misdiagnosis and missed diagnosis.
第二,通过计算机辅助对病灶区域进行识别与分析,需要医生协助确定医学影像中的某些特征点和特征区域,例如,计算医学图像中动脉瘤的形态学参数,需要医生协助确定瘤颈点或瘤颈平面。然而,在医生协助的过程中,容易引入人工误差。Second, the computer-assisted identification and analysis of the lesion area requires doctors to assist in determining certain characteristic points and characteristic areas in medical images. For example, to calculate the morphological parameters of aneurysms in medical images, doctors are required to assist in determining the neck point of the tumor. Or tumor neck plane. However, in the process of doctor's assistance, it is easy to introduce artificial errors.
发明内容Summary of the invention
有鉴于此,本公开提出了一种图像处理方法及装置、电子设备和存储介质。In view of this, the present disclosure proposes an image processing method and device, electronic equipment, and storage medium.
根据本公开的一方面,提供了一种图像处理方法,所述方法包括:对待处理图像进行分割处理,确定与所述待处理图像中的目标器官对应的器官区域,以及与所述目标器官上的病灶对应的病灶区域;根据所述器官区域和所述病灶区域的位置,从所述器官区域中确定出异常子区域,所述异常子区域对应于承载所述病灶的器官部分;根据所述异常子区域中的第一像素点与所述病灶区域中的第二像素点之间的位置关系,确定所述异常子区域与所述病灶区域之间的病灶分界面;根据所述病灶分界面以及所述病灶区域,确定所述病灶的形态学分析结果。According to an aspect of the present disclosure, there is provided an image processing method, the method comprising: segmentation processing an image to be processed, determining an organ region corresponding to a target organ in the image to be processed, and The lesion area corresponding to the lesion; according to the position of the organ area and the lesion area, an abnormal sub-area is determined from the organ area, and the abnormal sub-area corresponds to the part of the organ that carries the lesion; according to the The positional relationship between the first pixel point in the abnormal sub-region and the second pixel point in the lesion area to determine the lesion interface between the abnormal sub-region and the lesion area; according to the lesion interface And the lesion area to determine the morphological analysis result of the lesion.
在一种可能的实现方式中,根据所述异常子区域中的第一像素点与所述病灶区域中的第二像素点之间的位置关系,确定所述异常子区域与所述病灶区域之间的病灶分界面,包括:根据所述第一像素点与所述第二像素点之间的距离,从所述第一像素点和所述第二像素点中确定出分界参考点;根据预设的多个参考平面中分界参考点的数量,从所述多个参考平面中确定出病灶分界面,其中,所述多个参考平面分别垂直于所述待处理图像的图像坐标系的各个坐标轴。In a possible implementation, according to the positional relationship between the first pixel point in the abnormal sub-region and the second pixel point in the lesion area, determine the difference between the abnormal sub-region and the lesion area. The boundary between the lesions includes: determining a boundary reference point from the first pixel point and the second pixel point according to the distance between the first pixel point and the second pixel point; The number of dividing reference points in the multiple reference planes is set, and the lesion interface is determined from the multiple reference planes, wherein the multiple reference planes are respectively perpendicular to each coordinate of the image coordinate system of the image to be processed axis.
在一种可能的实现方式中,根据所述第一像素点与所述第二像素点之间的距离,从所述第一像素点和所述第二像素点中确定出分界参考点,包括:针对任一个第一像素点,确定所述第一像素点与所述病灶区域中的各个第二像素点之间的第一距离;在存在小于 或等于距离阈值的第一距离的情况下,将所述第一像素点确定为分界参考点;针对任一个第二像素点,确定所述第二像素点与所述异常子区域中的各个第一像素点之间的第二距离;在存在小于或等于所述距离阈值的第二距离的情况下,将所述第二像素点确定为分界参考点。In a possible implementation manner, determining a demarcation reference point from the first pixel and the second pixel according to the distance between the first pixel and the second pixel includes : For any first pixel, determine the first distance between the first pixel and each second pixel in the lesion area; if there is a first distance less than or equal to the distance threshold, Determine the first pixel point as a demarcation reference point; for any second pixel point, determine the second distance between the second pixel point and each first pixel point in the abnormal sub-region; In the case of a second distance less than or equal to the distance threshold, the second pixel point is determined as the demarcation reference point.
在一种可能的实现方式中,根据所述器官区域和所述病灶区域的位置,从所述器官区域中确定出异常子区域,包括:获取与所述病灶区域外接的第一空间区域;根据预设的扩展系数,对所述第一空间区域进行扩展,得到扩展后的第二空间区域;将所述第二空间区域中,属于所述器官区域且不属于所述病灶区域的空间区域,确定为所述异常子区域。In a possible implementation manner, determining an abnormal sub-region from the organ area according to the positions of the organ area and the lesion area includes: obtaining a first spatial area circumscribing the lesion area; according to A preset expansion coefficient is used to expand the first spatial area to obtain an expanded second spatial area; among the second spatial areas, the spatial areas that belong to the organ area and do not belong to the lesion area, Determined as the abnormal sub-region.
在一种可能的实现方式中,所述病灶的形态学分析结果包括所述病灶的形态学参数,所述形态学参数包括参考直径、最大直径、宽度以及高度,其中,所述根据所述病灶分界面以及所述病灶区域,确定所述病灶的形态学分析结果,包括:在所述病灶分界面包括的分界参考点中,将距离最大的两个分界参考点间的距离,确定为所述病灶的参考直径;在所述病灶区域包括的第二像素点中,将第二像素点与所述病灶分界面的几何中心的最大距离,确定为所述病灶的最大直径;在所述病灶区域包括的第二像素点中,在垂直所述最大直径的方向上,将距离最大的两个第二像素点间的距离,确定为所述病灶的宽度;在所述病灶区域包括的第二像素点中,将第二像素点与所述病灶分界面的最大距离,确定为所述病灶的高度。In a possible implementation manner, the result of the morphological analysis of the lesion includes morphological parameters of the lesion, and the morphological parameters include a reference diameter, a maximum diameter, a width, and a height. The boundary and the lesion area, and determining the morphological analysis result of the lesion includes: among the boundary reference points included in the lesion boundary, the distance between the two boundary reference points with the largest distance is determined as the The reference diameter of the lesion; among the second pixels included in the lesion area, the maximum distance between the second pixel and the geometric center of the interface of the lesion is determined as the maximum diameter of the lesion; in the lesion area Among the included second pixel points, in the direction perpendicular to the maximum diameter, the distance between the two second pixel points with the largest distance is determined as the width of the lesion; the second pixel included in the lesion area Among the points, the maximum distance between the second pixel point and the interface of the lesion is determined as the height of the lesion.
在一种可能的实现方式中,对待处理图像进行分割处理,确定与所述待处理图像中的目标器官对应的器官区域,以及与所述目标器官上的病灶对应的病灶区域,包括:对待处理图像进行归一化处理,得到处理后的第一图像;对所述第一图像进行第一分割处理,确定所述第一图像中的器官区域;对所述第一图像进行第二分割处理,确定所述第一图像中的病灶区域。In a possible implementation manner, performing segmentation processing on the image to be processed, and determining the organ area corresponding to the target organ in the image to be processed, and the lesion area corresponding to the lesion on the target organ, includes: Perform normalization processing on the image to obtain a processed first image; perform a first segmentation process on the first image to determine organ regions in the first image; perform a second segmentation process on the first image, Determine the lesion area in the first image.
在一种可能的实现方式中,对所述第一图像进行第一分割处理,确定所述第一图像中的器官区域,包括:根据第一预设尺寸,对所述第一图像进行切割,得到第一采样图像块;将所述第一采样图像块输入第一分割网络中进行分割,得到所述第一采样图像块的分割结果;对多个第一采样图像块的分割结果进行融合,得到所述第一图像中的器官区域;In a possible implementation manner, performing a first segmentation process on the first image to determine the organ region in the first image includes: cutting the first image according to a first preset size, Obtain a first sampled image block; input the first sampled image block into a first segmentation network for segmentation to obtain a segmentation result of the first sampled image block; fuse the segmentation results of a plurality of first sampled image blocks, Obtaining the organ area in the first image;
其中,对所述第一图像进行第二分割处理,确定所述第一图像中的病灶区域,包括:根据第二预设尺寸,对所述第一图像进行切割,得到第二采样图像块;将所述第二采样图像块输入第二分割网络中进行分割,得到所述第二采样图像块的分割结果;对多个第二采样图像块的分割结果进行融合,得到所述第一图像中的病灶区域。Wherein, performing a second segmentation process on the first image to determine the lesion area in the first image includes: cutting the first image according to a second preset size to obtain a second sampled image block; The second sampled image block is input into the second segmentation network for segmentation to obtain the segmentation result of the second sampled image block; the segmentation results of multiple second sampled image blocks are merged to obtain the first image Of the lesion area.
在一种可能的实现方式中,所述待处理图像包括三维的血管造影图像,所述目标器官包括血管,所述目标器官上的病灶包括动脉瘤,所述异常子区域包括载瘤动脉区域,所述病灶分界面包括所述动脉瘤的瘤颈平面。In a possible implementation manner, the image to be processed includes a three-dimensional angiographic image, the target organ includes a blood vessel, the lesion on the target organ includes an aneurysm, and the abnormal sub-region includes a tumor-bearing artery region, The lesion interface includes the aneurysm neck plane.
根据本公开的一方面,提供了一种图像处理装置,包括:分割模块,用于对待处理 图像进行分割处理,确定与所述待处理图像中的目标器官对应的器官区域,以及与所述目标器官上的病灶对应的病灶区域;异常子区域确定模块,用于根据所述器官区域和所述病灶区域的位置,从所述器官区域中确定出异常子区域,所述异常子区域对应于承载所述病灶的器官部分;病灶分界面确定模块,用于根据所述异常子区域中的第一像素点与所述病灶区域中的第二像素点之间的位置关系,确定所述异常子区域与所述病灶区域之间的病灶分界面;病灶分析模块,用于根据所述病灶分界面以及所述病灶区域,确定所述病灶的形态学分析结果。According to one aspect of the present disclosure, there is provided an image processing device, including: a segmentation module for performing segmentation processing on an image to be processed, determining an organ region corresponding to a target organ in the image to be processed, and The lesion area corresponding to the lesion on the organ; the abnormal sub-area determining module is used to determine the abnormal sub-area from the organ area according to the position of the organ area and the lesion area, and the abnormal sub-area corresponds to the bearing The organ part of the lesion; the lesion interface determination module, configured to determine the abnormal subregion according to the positional relationship between the first pixel point in the abnormal subregion and the second pixel point in the lesion region The lesion interface with the lesion area; the lesion analysis module is used to determine the morphological analysis result of the lesion according to the lesion interface and the lesion area.
根据本公开的另一方面,提供了一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述的方法。According to another aspect of the present disclosure, there is provided an electronic device including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call the instructions stored in the memory to execute The above method.
根据本公开的另一方面,提供了一种非易失性计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。According to another aspect of the present disclosure, there is provided a non-volatile computer-readable storage medium having computer program instructions stored thereon, and the computer program instructions implement the above method when executed by a processor.
在本公开实施例中,通过对待处理图像进行分割处理,确定器官区域和病灶区域,并根据器官区域和病灶区域的位置关系,确定出病灶分界面;最后根据病灶分界面以及病灶区域,确定出病灶的形态学分析结果。该方法能够自动且准确地确定出图像中病灶的形态学分析结果,从而减少医务人员的工作量,提高医务人员的工作效率。In the embodiment of the present disclosure, the organ area and the lesion area are determined by segmenting the image to be processed, and the lesion interface is determined according to the positional relationship between the organ area and the lesion area; finally, the lesion interface is determined according to the lesion interface and the lesion area. Morphological analysis results of the lesion. This method can automatically and accurately determine the morphological analysis result of the lesion in the image, thereby reducing the workload of medical staff and improving the work efficiency of medical staff.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, rather than limiting the present disclosure. According to the following detailed description of exemplary embodiments with reference to the accompanying drawings, other features and aspects of the present disclosure will become clear.
附图说明Description of the drawings
包含在说明书中并且构成说明书的一部分的附图与说明书一起示出了本公开的示例性实施例、特征和方面,并且用于解释本公开的原理。The drawings included in the specification and constituting a part of the specification together with the specification illustrate exemplary embodiments, features, and aspects of the present disclosure, and are used to explain the principle of the present disclosure.
图1示出根据本公开实施例的图像处理方法的流程图;Fig. 1 shows a flowchart of an image processing method according to an embodiment of the present disclosure;
图2示出根据本公开实施例的异常子区域的示意图;Fig. 2 shows a schematic diagram of an abnormal sub-region according to an embodiment of the present disclosure;
图3示出根据本公开实施例的病灶的形态学分析结果的示意图;Fig. 3 shows a schematic diagram of a morphological analysis result of a lesion according to an embodiment of the present disclosure;
图4示出根据本公开实施例的图像处理装置的框图;Fig. 4 shows a block diagram of an image processing device according to an embodiment of the present disclosure;
图5示出根据本公开实施例的电子设备的框图;Figure 5 shows a block diagram of an electronic device according to an embodiment of the present disclosure;
图6示出根据本公开实施例的电子设备的框图。FIG. 6 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式detailed description
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Hereinafter, various exemplary embodiments, features, and aspects of the present disclosure will be described in detail with reference to the drawings. The same reference numerals in the drawings indicate elements with the same or similar functions. Although various aspects of the embodiments are shown in the drawings, unless otherwise noted, the drawings are not necessarily drawn to scale.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The dedicated word "exemplary" here means "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" need not be construed as being superior or better than other embodiments.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is only an association relationship that describes the associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, exist alone B these three situations. In addition, the term "at least one" in this document means any one of a plurality of or any combination of at least two of the plurality, for example, including at least one of A, B, and C, and may mean including A, Any one or more elements selected in the set formed by B and C.
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. Those skilled in the art should understand that the present disclosure can also be implemented without certain specific details. In some instances, the methods, means, elements, and circuits well-known to those skilled in the art have not been described in detail in order to highlight the gist of the present disclosure.
图1示出根据本公开实施例的图像处理方法的流程图,如图1所示,所述图像处理方法包括:Fig. 1 shows a flowchart of an image processing method according to an embodiment of the present disclosure. As shown in Fig. 1, the image processing method includes:
在步骤S11中,对待处理图像进行分割处理,确定与所述待处理图像中的目标器官对应的器官区域,以及与所述目标器官上的病灶对应的病灶区域;In step S11, segmentation processing is performed on the image to be processed, and the organ area corresponding to the target organ in the image to be processed is determined, and the lesion area corresponding to the lesion on the target organ is determined;
在步骤S12中,根据所述器官区域和所述病灶区域的位置,从所述器官区域中确定出异常子区域,所述异常子区域对应于承载所述病灶的器官部分;In step S12, according to the positions of the organ area and the lesion area, an abnormal sub-area is determined from the organ area, and the abnormal sub-area corresponds to the part of the organ that carries the lesion;
在步骤S13中,根据所述异常子区域中的第一像素点与所述病灶区域中的第二像素点之间的位置关系,确定所述异常子区域与所述病灶区域之间的病灶分界面;In step S13, according to the positional relationship between the first pixel point in the abnormal sub-region and the second pixel point in the lesion area, the lesion division between the abnormal sub-region and the lesion area is determined. interface;
在步骤S14中,根据所述病灶分界面以及所述病灶区域,确定所述病灶的形态学分析结果。In step S14, the morphological analysis result of the lesion is determined according to the interface of the lesion and the area of the lesion.
在一种可能的实现方式中,所述图像处理方法可以由终端设备或服务器等电子设备执行,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端等,其它处理设备可为服务器或云端服务器等。在一些可能的实现方式中,该图像处理方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。或者,可通过服务器执行该方法。In a possible implementation manner, the image processing method can be executed by electronic devices such as a terminal device or a server, and the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, etc., and other processing equipment It can be a server or a cloud server, etc. In some possible implementation manners, the image processing method may be implemented by a processor invoking computer-readable instructions stored in the memory. Alternatively, the method can be executed by the server.
在一种可能的实现方式中,待处理图像可为医学影像,该医学影像可以是各种类型的医疗设备拍摄的图像,或者,用于医疗诊断的图像,例如,电子计算机断层扫描(Computed Tomography,CT)图像或者核磁共振(Magnetic Resonance Imaging,MRI)图像等。本公开对待处理图像的类型及具体获取方式不作限制。In a possible implementation, the image to be processed may be a medical image, which may be an image taken by various types of medical equipment, or an image used for medical diagnosis, for example, a computer tomography (Computed Tomography). , CT) images or MRI (Magnetic Resonance Imaging, MRI) images, etc. The present disclosure does not limit the type of image to be processed and the specific acquisition method.
在一种可能的实现方式中,待处理图像可为三维医学影像,例如包括三维的血管造影图像。为了在临床中将待处理图像中器官、组织或病灶的位置描述的更具体,可在三维医学影像设置冠状位(Coronal View),矢状位(Sagittal View)和轴位(Axial View);In a possible implementation, the image to be processed may be a three-dimensional medical image, for example, including a three-dimensional angiography image. In order to describe the position of organs, tissues or lesions in the image to be processed more specifically in the clinic, the Coronal View, Sagittal View and Axial View can be set in the three-dimensional medical image;
其中,冠状位可表示沿人体的长轴将人体纵切为前、后部分的方位,矢状位可表示沿人体的长轴将人体纵切为左、右部分的方位,轴位可表示沿水平方向将人体横切为上、下部分的方位。冠状位,矢状位和轴位可以相当于由xyz形成的直角坐标系中坐标轴的方位。Among them, the coronal position can mean the position where the human body is longitudinally cut into the front and back parts along the long axis of the human body, the sagittal position can mean the position where the human body is longitudinally cut into the left and right parts along the long axis of the human body, and the axis position can mean the position along the long axis of the human body. The human body is transversely cut into the upper and lower parts in the horizontal direction. The coronal position, the sagittal position and the axial position can be equivalent to the position of the coordinate axis in the rectangular coordinate system formed by xyz.
在一种可能的实现方式中,所述待处理图像包括目标器官、以及目标器官上的病灶, 例如待处理图像的目标器官可以是颅内血管、心脏冠状动脉、肺动脉等,目标器官上的病灶可以是颅内囊性动脉瘤、冠状动脉瘤、肺动脉瘤等,本公开对具体的目标器官和目标器官上的病灶不作限制。其中,目标器官上的病灶可以有一个或多个,本公开对目标器官上的病灶个数不作限制。In a possible implementation manner, the image to be processed includes a target organ and a lesion on the target organ. For example, the target organ of the image to be processed may be an intracranial blood vessel, a coronary artery of the heart, a pulmonary artery, etc., and a lesion on the target organ It may be an intracranial saccular aneurysm, coronary aneurysm, pulmonary aneurysm, etc. The present disclosure does not limit specific target organs and lesions on the target organs. Among them, there may be one or more lesions on the target organ, and the present disclosure does not limit the number of lesions on the target organ.
在一种可能的实现方式中,在对待处理图像进行分割之前,可以对待处理图像进行预处理,以利于后续的图像分割处理。其中,预处理可包括统一待处理图像的物理空间(Spacing)的分辨率,统一待处理图像中像素值的取值范围,对待处理图像进行区域裁切等。通过这种方式,可实现统一图像尺寸,减少待处理的数据量,便于后续的图像分割操作。本公开对预处理的具体内容及处理方式不作限制。In a possible implementation manner, before segmenting the image to be processed, the image to be processed may be preprocessed to facilitate subsequent image segmentation processing. Among them, the preprocessing may include unifying the resolution of the physical space (Spacing) of the image to be processed, unifying the range of pixel values in the image to be processed, and performing regional cropping on the image to be processed, and so on. In this way, the image size can be unified, the amount of data to be processed can be reduced, and subsequent image segmentation operations can be facilitated. The present disclosure does not limit the specific content and processing method of preprocessing.
在一种可能的实现方式中,在步骤S11中,可对待处理图像进行分割处理,确定与所述待处理图像中的目标器官对应的器官区域,以及与所述目标器官上的病灶对应的病灶区域;其中,所述目标器官例如包括血管,所述目标器官上的病灶例如包括动脉瘤。In a possible implementation manner, in step S11, the image to be processed may be segmented to determine the organ region corresponding to the target organ in the image to be processed, and the lesion corresponding to the lesion on the target organ Area; wherein the target organ includes, for example, blood vessels, and the lesion on the target organ includes, for example, aneurysms.
举例来说,待处理图像为三维医学影像,图像中可包括目标器官,以及目标器官上的一个或多个病灶。通过对待处理图像进行分割处理,可获得分割结果,该结果包括待处理图像中目标器官对应的器官区域,以及与目标器官上的病灶对应的病灶区域。例如,待处理图像为颅内血管造影图像,对该图像进行分割处理,可得到分割结果,该结果包括该颅内血管造影图像中血管区域,以及血管上的一个或多个动脉瘤所在的病灶区域。For example, the image to be processed is a three-dimensional medical image, and the image may include a target organ and one or more lesions on the target organ. By performing segmentation processing on the image to be processed, a segmentation result can be obtained, the result including the organ area corresponding to the target organ in the image to be processed, and the lesion area corresponding to the lesion on the target organ. For example, the image to be processed is an intracranial angiography image, and segmentation of the image can be performed to obtain the segmentation result. The result includes the blood vessel area in the intracranial angiography image and the lesion where one or more aneurysms on the blood vessel are located. area.
在一种可能的实现方式中,由于在待处理图像上,目标器官和目标器官上的病灶为粘连状态,所以经过分割处理后确定的器官区域和病灶区域可能会存在重叠区域,也即可能存在一个或多个像素点,既属于器官区域,也属于病灶区域。In a possible implementation, since the target organ and the lesion on the target organ are in a state of adhesion on the image to be processed, there may be overlapping areas between the organ area and the lesion area determined after the segmentation process, that is, there may be One or more pixels belong to both the organ area and the lesion area.
在一种可能的实现方式中,在对待处理图像进行分割处理的过程中,可通过一次分割处理,得到分割结果。在该分割结果中,器官区域中的各像素可标记为1,器官上承载的病灶区域中的各像素可标记为2,其它背景区域中的各像素可标记为0。通过对待处理图像进行一次分割处理,可快速得到器官区域和病灶区域。In a possible implementation manner, in the process of performing segmentation processing on the image to be processed, the segmentation result can be obtained through one segmentation processing. In the segmentation result, each pixel in the organ area can be marked as 1, each pixel in the lesion area carried on the organ can be marked as 2, and each pixel in other background areas can be marked as 0. By performing a segmentation process on the image to be processed, the organ area and the lesion area can be quickly obtained.
或者,在对待处理图像进行分割处理的过程中,可通过两次分割处理,得到分割结果。也即,可通过对待处理图像进行第一分割处理,得到第一分割结果,在第一分割结果中,器官区域中各像素可标记为1,器官区域以外的背景区域中各像素可标记为0。根据第一分割结果,可确定待处理图像的器官区域。可通过对待处理图像进行第二分割处理,得到第二分割结果,在第二分割结果中,目标器官上承载的病灶区域中的各像素可标记为1,病灶区域以外的背景区域中各像素可标记为0。根据第二分割结果,可确定待处理图像的病灶区域。通过对待处理图像进行两次分割处理,可以充分利用待处理图像的信息,得到更准确的分割结果。Or, in the process of segmenting the image to be processed, the segmentation result can be obtained through two segmentation processing. That is, the first segmentation process can be performed on the image to be processed to obtain the first segmentation result. In the first segmentation result, each pixel in the organ area can be marked as 1, and each pixel in the background area outside the organ area can be marked as 0. . According to the first segmentation result, the organ region of the image to be processed can be determined. The second segmentation result can be obtained by performing the second segmentation process on the image to be processed. In the second segmentation result, each pixel in the lesion area carried on the target organ can be marked as 1, and each pixel in the background area outside the lesion area can be Marked as 0. According to the second segmentation result, the lesion area of the image to be processed can be determined. By performing two segmentation processing on the image to be processed, the information of the image to be processed can be fully utilized to obtain more accurate segmentation results.
应当理解,本公开可以并行对待处理图像进行第一分割处理和第二分割处理,也可以先对待处理图像进行第二分割处理,再进行第一分割处理,本公开对两次分割处理的顺序及分割处理方式不作限制。It should be understood that the present disclosure can perform the first segmentation processing and the second segmentation processing on the image to be processed in parallel, or perform the second segmentation processing on the image to be processed first, and then perform the first segmentation processing. The sequence of the two segmentation processing and There is no restriction on the split processing method.
在一种可能的实现方式中,在步骤S12中,根据所述器官区域和所述病灶区域的位置, 从所述器官区域中确定出异常子区域,所述异常子区域对应于承载所述病灶的器官部分。其中,所述异常子区域例如包括载瘤动脉区域。In a possible implementation, in step S12, an abnormal sub-region is determined from the organ region according to the positions of the organ region and the lesion region, and the abnormal sub-region corresponds to bearing the lesion. Part of the organ. Wherein, the abnormal sub-region includes, for example, the tumor-bearing artery region.
举例来说,由于器官区域包含了大量的像素点数据,在根据器官区域和病灶区域得到病灶的形态学分析结果的过程中,器官区域中远离病灶区域的部分像素点数据,不影响病灶的形态学分析结果。For example, since the organ area contains a large amount of pixel data, in the process of obtaining the morphological analysis results of the lesion based on the organ area and the lesion area, the data of some pixels in the organ area far away from the lesion area does not affect the shape of the lesion Learn to analyze the results.
为了减少数据的运算量,提高运算效率,根据器官区域和病灶区域的位置关系,可从器官区域中确定出会影响病灶的形态学分析结果的异常子区域,该异常子区域对应于承载病灶的器官部分,即器官区域中邻近病灶区域的子区域部分。其中,为了提高病灶的形态学分析结果的准确性,根据器官区域和病灶区域的位置,从器官区域中确定出异常子区域的过程中,可去除既在器官区域又在病灶区域的重叠区域。In order to reduce the amount of data calculation and improve the efficiency of calculation, according to the positional relationship between the organ area and the lesion area, an abnormal sub-area that will affect the morphological analysis result of the lesion can be determined from the organ area. The abnormal sub-area corresponds to the bearing lesion. Organ part, that is, the sub-area part of the organ area adjacent to the lesion area. Among them, in order to improve the accuracy of the morphological analysis results of the lesion, in the process of determining the abnormal subregion from the organ area according to the position of the organ area and the lesion area, the overlapping area in both the organ area and the lesion area can be removed.
其中,病灶区域中的每一个病灶对应一个异常子区域,器官区域可包括一个或多个异常子区域。本公开可以逐个确定各个病灶对应的异常子区域,也可并行确定各个病灶对应的异常子区域,本公开对此不作限制。Wherein, each lesion in the lesion area corresponds to an abnormal sub-area, and the organ area may include one or more abnormal sub-areas. The present disclosure can determine the abnormal sub-regions corresponding to each lesion one by one, or determine the abnormal sub-regions corresponding to each lesion in parallel, which is not limited in the present disclosure.
在一种可能的实现方式中,在步骤S13中,根据所述异常子区域中的第一像素点与所述病灶区域中的第二像素点之间的位置关系,确定所述异常子区域与所述病灶区域之间的病灶分界面。其中,所述病灶分界面例如包括所述动脉瘤的瘤颈平面。In a possible implementation manner, in step S13, according to the positional relationship between the first pixel point in the abnormal sub-region and the second pixel point in the lesion area, it is determined that the abnormal sub-region and The lesion interface between the lesion areas. Wherein, the lesion interface includes, for example, the aneurysm neck plane.
举例来说,根据异常子区域和病灶区域的,确定两者之间的病灶分界面,可根据异常子区域中包括的第一像素点与病灶区域中包括的第二像素点之间的位置关系,确定异常子区域与病灶区域之间的病灶分界面。例如,异常子区域为血管区域中的载瘤血管区域,病灶区域为动脉瘤区域,可根据载瘤血管区域中的第一像素点与动脉瘤区域中的第二像素点的位置关系,确定载瘤血管区域与动脉瘤区域的病灶分界面,也即瘤颈平面。For example, according to the abnormal sub-region and the lesion area, determine the lesion interface between the two, which can be based on the positional relationship between the first pixel point included in the abnormal sub-region and the second pixel point included in the lesion area , To determine the lesion interface between the abnormal sub-area and the lesion area. For example, the abnormal sub-area is the tumor-bearing blood vessel area in the blood vessel area, and the lesion area is the aneurysm area. The carrier can be determined according to the positional relationship between the first pixel in the tumor-bearing blood vessel area and the second pixel in the aneurysm area. The interface between the tumor blood vessel area and the aneurysm area, which is the plane of the tumor neck.
在一种可能的实现方式中,在步骤S14中,根据所述病灶分界面以及所述病灶区域,确定所述病灶的形态学分析结果。In a possible implementation manner, in step S14, the morphological analysis result of the lesion is determined according to the interface of the lesion and the area of the lesion.
举例来说,可根据上述步骤得到病灶分界面以及病灶区域,确定病灶的形态学分析结果。也即,可根据病灶分界面中的分界参考点与病灶区域中的第二像素点之间的位置关系,确定病灶区域的形态学分析结果。其中,病灶的形态学分析结果可包括病灶的多个形态学参数,例如,病灶的参考直径、最大直径、宽度以及高度等。For example, the lesion interface and the lesion area can be obtained according to the above steps, and the morphological analysis result of the lesion can be determined. That is, the morphological analysis result of the lesion area can be determined according to the positional relationship between the boundary reference point in the lesion interface and the second pixel point in the lesion area. Among them, the morphological analysis result of the lesion may include multiple morphological parameters of the lesion, for example, the reference diameter, maximum diameter, width, and height of the lesion.
通过这种方式,能够在无需医生辅助的情况下,自动确定病灶的形态学分析结果,可避免由于医生人工干预所带来的误差,提高了病灶的形态学分析结果的精准度,减少医生的工作量,提高医务人员的工作效率。In this way, the morphological analysis results of the lesion can be automatically determined without the assistance of the doctor, which can avoid errors caused by the doctor’s manual intervention, improve the accuracy of the morphological analysis results of the lesion, and reduce the doctor’s Workload, improve the work efficiency of medical staff.
下面对根据本公开实施例的图像处理方法进行展开说明。The following is an expanded description of the image processing method according to the embodiment of the present disclosure.
在一种可能的实现方式中,步骤S11可包括:对待处理图像进行归一化处理,得到处理后的第一图像;对所述第一图像进行第一分割处理,确定所述第一图像中的器官区域;对所述第一图像进行第二分割处理,确定所述第一图像中的病灶区域。In a possible implementation, step S11 may include: performing normalization processing on the image to be processed to obtain a processed first image; performing a first segmentation process on the first image to determine that the first image is The organ area of the first image is subjected to a second segmentation process to determine the lesion area in the first image.
举例来说,对待处理图像进行归一化处理,即将待处理图像中各像素的像素值归一化到0-1的值域范围内,以提升处理效率。例如,假设待处理图像为8位灰度图像,各像 素的像素值范围为0-255,可将各像素的像素值分别除以255,使待处理图像中各像素的像素值归一化到0-1的值域范围内。在对待处理图像进行归一化处理后,可获得第一图像。可以理解,归一化方法可以包括但不限于线性函数归一化(Min-Max Scaling)、0均值规范化(Z-Score Standardization)、非线性归一化等,本公开对归一化方法不作限制。For example, the image to be processed is normalized, that is, the pixel value of each pixel in the image to be processed is normalized to a value range of 0-1, so as to improve the processing efficiency. For example, assuming that the image to be processed is an 8-bit grayscale image and the pixel value of each pixel ranges from 0 to 255, the pixel value of each pixel can be divided by 255 to normalize the pixel value of each pixel in the image to be processed to Within the value range of 0-1. After normalizing the image to be processed, the first image can be obtained. It is understandable that the normalization method may include, but is not limited to, linear function normalization (Min-Max Scaling), zero-mean normalization (Z-Score Standardization), non-linear normalization, etc. The present disclosure does not limit the normalization method .
在一种可能的实现方式中,在得到归一化处理的第一图像后,可对第一图像进行第一分割处理,可得到第一分割结果,该结果包括目标器官所在的器官区域,以及器官区域以外的背景区域。例如,第一图像为归一化处理后的颅内血管造影图像(CT Angiography,CTA),可对该图像进行第一分割处理,得到的第一分割结果,即颅内血管造影图像中的血管区域,以及血管区域以外的背景区域。其中,第一分割结果可以是二值标签,也即将颅内血管造影图像中的血管区域标记为1,将血管区域以外的背景区域标记为0。In a possible implementation manner, after the normalized first image is obtained, the first segmentation process can be performed on the first image, and the first segmentation result can be obtained. The result includes the organ region where the target organ is located, and The background area outside the organ area. For example, the first image is a normalized intracranial angiography (CT Angiography, CTA) image. The first segmentation process can be performed on the image, and the first segmentation result obtained is the blood vessel in the intracranial angiography image. Area, and the background area outside the blood vessel area. The first segmentation result may be a binary label, that is, the blood vessel area in the intracranial angiography image is marked as 1, and the background area outside the blood vessel area is marked as 0.
在一种可能的实现方式中,可预先设置第一分割网络,用于对第一图像进行第一分割处理,确定第一图像中目标器官所在的器官区域。第一分割网络可以是深度卷积神经网络,包括多个卷积层、多个反卷积层、全连接层等,具体可采用的分割网络包括并不限于U形网络(U Network,U-NET)、V形网络(V Network,V-NET)等网络结构,本公开对第一分割网络的具体网络结构不作限制。In a possible implementation manner, the first segmentation network may be preset to perform the first segmentation processing on the first image to determine the organ region where the target organ is located in the first image. The first segmentation network can be a deep convolutional neural network, including multiple convolutional layers, multiple deconvolutional layers, fully connected layers, etc. The specific segmentation networks that can be used include but are not limited to U Network (U-Network, U-Network). NET), V-Network (V-NET) and other network structures. The present disclosure does not limit the specific network structure of the first segmented network.
可参考上述第一分割处理方法,对第一图像进行第二分割处理,得到第二分割结果,该结果包括目标器官上的病灶所在的病灶区域,以及病灶区域以外的背景区域。例如,第一图像为归一化处理后的颅内血管造影图像(CT Angiography,CTA),可对该图像进行第二分割处理,得到的第二分割结果,即颅内血管造影图像中的血管区域上的动脉瘤区域,以及动脉瘤区域以外的背景区域;其中,第二分割结果可以是二值标签,也即将颅内血管造影图像中的动脉瘤区域标记为1,将血管区域以外的背景区域标记为0。Refer to the above-mentioned first segmentation processing method to perform the second segmentation processing on the first image to obtain the second segmentation result. The result includes the lesion area where the lesion on the target organ is located and the background area outside the lesion area. For example, the first image is a normalized intracranial angiography (CT Angiography, CTA) image, and the second segmentation process can be performed on the image to obtain the second segmentation result, that is, the blood vessels in the intracranial angiography image The aneurysm area on the area, and the background area outside the aneurysm area; where the second segmentation result can be a binary label, that is, the aneurysm area in the intracranial angiography image is marked as 1, and the background outside the blood vessel area The area is marked as 0.
在一种可能的实现方式中,可预先设置第二分割网络,用于对第二图像进行第二分割处理,确定第二图像中目标器官上的病灶所在的病灶区域。第二分割网络可以是深度卷积神经网络,包括多个卷积层、多个反卷积层、全连接层等,具体可采用的分割网络包括并不限于U形网络(U Network,U-NET)、V形网络(V Network,V-NET)等网络结构,本公开对第二分割网络的具体网络结构不作限制。In a possible implementation manner, a second segmentation network may be preset to perform a second segmentation process on the second image to determine the lesion area where the lesion on the target organ in the second image is located. The second segmentation network can be a deep convolutional neural network, including multiple convolutional layers, multiple deconvolutional layers, fully connected layers, etc. The specific segmentation networks that can be used include but are not limited to U Network (U-Network, U-Network). NET), V-Network (V-NET) and other network structures. The present disclosure does not limit the specific network structure of the second split network.
通过这种方式,可在没有医生辅助的情况下,自动分割出第一图像中的器官区域和病灶区域。In this way, the organ area and the lesion area in the first image can be automatically segmented without the assistance of a doctor.
在一种可能的实现方式中,步骤S11中对所述第一图像进行第一分割处理,确定所述第一图像中的器官区域,包括:根据第一预设尺寸,对所述第一图像进行切割,得到第一采样图像块;将所述第一采样图像块输入第一分割网络中进行分割,得到所述第一采样图像块的分割结果;对多个第一采样图像块的分割结果进行融合,得到所述第一图像中的器官区域;In a possible implementation manner, performing a first segmentation process on the first image in step S11 to determine the organ region in the first image includes: performing a first segmentation process on the first image according to a first preset size Perform cutting to obtain a first sampled image block; input the first sampled image block into a first segmentation network for segmentation to obtain a segmentation result of the first sampled image block; segmentation results for a plurality of first sampled image blocks Performing fusion to obtain the organ region in the first image;
举例来说,在对第一图像进行第一分割处理的过程中,可设置第一预设尺寸,以使输入第一分割网络的第一采样图像块的尺寸一致。例如,假设第一图像的尺寸为256×512×512,即在z轴方向(即医学影像切片间距的方向)上有256像素,在x轴(宽度)方向 和y轴(高度)方向分别有512像素。第一预设尺寸可设置为64×384×384,即在z轴方向上有64像素,在x轴方向和y轴方向分别有384像素。For example, in the process of performing the first segmentation process on the first image, the first preset size may be set so that the sizes of the first sampled image blocks input to the first segmentation network are consistent. For example, suppose the size of the first image is 256×512×512, that is, there are 256 pixels in the z-axis direction (that is, the direction of the medical image slice pitch), and the x-axis (width) direction and the y-axis (height) direction are respectively 512 pixels. The first preset size can be set to 64×384×384, that is, there are 64 pixels in the z-axis direction, and 384 pixels in the x-axis direction and y-axis direction respectively.
可以按照某固定的切割步长在x轴方向、y轴方向和z轴方向上对第一图像进行有重叠的切割处理,得到多个第一预设尺寸64×384×384的切割图像块,各切割图像块即为第一采样图像块。相邻的多个第一采样图像块有部分图像区域重合。其中,第一采样图像块的数量和各第一采样图像块的重叠区域大小,可根据第一预设尺寸和切割步长确定。本公开对第一预设尺寸和切割步长不作限制。The first image can be cut with overlap in the x-axis direction, y-axis direction and z-axis direction according to a fixed cutting step length to obtain multiple cut image blocks with a first preset size of 64×384×384. Each cut image block is the first sampled image block. Part of the image areas of the adjacent multiple first sampled image blocks overlap. Wherein, the number of first sampled image blocks and the size of the overlapping area of each first sampled image block can be determined according to the first preset size and the cutting step. The present disclosure does not limit the first preset size and cutting step length.
将多个第一采样图像块输入第一分割网络中进行处理,可以得到多个第一采样块的分割结果。按照各第一采样图像块的切割位置,可以对多个第一采样图像块进行融合,得到第一分割结果。The multiple first sampling image blocks are input into the first segmentation network for processing, and the segmentation results of the multiple first sampling blocks can be obtained. According to the cutting position of each first sampled image block, multiple first sampled image blocks can be merged to obtain the first segmentation result.
其中,在对多个第一采样图像块进行融合的过程中,可按照各第一采样图像块对应第一图像中的坐标位置,对每一像素分别进行融合,得到与第一图像尺寸相同的融合结果。该融合结果包括第一图像中每一个像素点属于器官区域的概率,可基于预设阈值将预测的各像素点属于器官区域的概率二值化,例如,可将大于预设阈值的各像素点标记为1,其代表的区域为器官区域;可将小于或等于预设阈值的各像素点标记为0,其代表的区域为背景区域。最后还可对融合结果中存在的每个联通域(即标记为1的各像素点组成的连通域),根据其体积进行过滤,去除体积小于特定阈值的联通域,得到第一分割结果,也即第一图像中的器官区域。Among them, in the process of fusing multiple first sampled image blocks, each pixel can be respectively fused according to the coordinate position in the first image corresponding to each first sampled image block, to obtain the same size as the first image Fusion result. The fusion result includes the probability that each pixel in the first image belongs to the organ area. The predicted probability that each pixel belongs to the organ area can be binarized based on a preset threshold. For example, each pixel that is larger than the preset threshold can be binarized. Marked as 1, the area it represents is the organ area; each pixel that is less than or equal to the preset threshold can be marked as 0, and the area it represents is the background area. Finally, it is also possible to filter each connected domain (that is, the connected domain formed by the pixels marked as 1) in the fusion result, and remove the connected domains whose volume is less than a certain threshold to obtain the first segmentation result. That is, the organ area in the first image.
通过这种方式,即通过对第一图像有重叠的切割处理,并将获取的各第一采样图像块输入第一分割网络得到多个第一采样图像块的分割结果,最后对多个第一采样图像块的分割结果进行融合得到第一图像中的器官区域,可以充分利用第一图像中的信息,提高图像分割的准确度。In this way, the first image is overlapped and cut, and each acquired first sampled image block is input into the first segmentation network to obtain the segmentation results of multiple first sampled image blocks. Finally, the first image is divided into multiple first sampled image blocks. The segmentation results of the sampled image blocks are fused to obtain the organ regions in the first image, which can make full use of the information in the first image to improve the accuracy of image segmentation.
在一种可能的实现方式中,对所述第一图像进行第二分割处理,确定所述第一图像中的病灶区域,包括:根据第二预设尺寸,对所述第一图像进行切割,得到第二采样图像块;将所述第二采样图像块输入第二分割网络中进行分割,得到所述第二采样图像块的分割结果;对多个第二采样图像块的分割结果进行融合,得到所述第一图像中的病灶区域。In a possible implementation manner, performing a second segmentation process on the first image to determine the lesion area in the first image includes: cutting the first image according to a second preset size, Obtain a second sampled image block; input the second sampled image block into a second segmentation network for segmentation to obtain a segmentation result of the second sampled image block; fuse the segmentation results of a plurality of second sampled image blocks, Obtain the lesion area in the first image.
应当理解,对第一图像进行第二分割处理,确定第一图像中的病灶区域,可以参考上文中对第一图像进行第一分割处理确定器官区域的过程,此处不再赘叙。其中,第二预设尺寸可以与第一预设尺寸相同,也可以与第一预设尺寸不同,本公开不作限制。It should be understood that for performing the second segmentation processing on the first image to determine the lesion area in the first image, reference may be made to the above process of performing the first segmentation processing on the first image to determine the organ area, which will not be repeated here. Wherein, the second preset size may be the same as the first preset size, or may be different from the first preset size, which is not limited in the present disclosure.
在步骤S11中进行分割处理,得到分割结果后,可在步骤S12中根据上述分割结果中的器官区域和病灶区域确定异常子区域。The segmentation process is performed in step S11, and after the segmentation result is obtained, the abnormal subregion can be determined in step S12 according to the organ area and the lesion area in the segmentation result.
在一种可能的实现方式中,步骤S12可包括:获取与所述病灶区域外接的第一空间区域;根据预设的扩展系数,对所述第一空间区域进行扩展,得到扩展后的第二空间区域;将所述第二空间区域中,属于所述器官区域且不属于所述病灶区域的空间区域,确定为所述异常子区域。In a possible implementation manner, step S12 may include: obtaining a first spatial area circumscribing the lesion area; expanding the first spatial area according to a preset expansion coefficient to obtain an expanded second Spatial area; in the second spatial area, a spatial area that belongs to the organ area and does not belong to the lesion area is determined as the abnormal sub-area.
举例来说,图2示出根据本公开实施例的异常子区域的示意图。如图2所示,获取病灶区域(图2所示的动脉瘤区域)外接的第一空间区域,即图2所示的虚线框A1区域。然后,计算该外接的第一空间区域的几何中心,并以该几何中心为中心,根据预设的扩展系数,对第一空间区域进行扩展,得到扩展后的第二空间区域,即图2所示的虚线框A2区域。For example, FIG. 2 shows a schematic diagram of an abnormal sub-region according to an embodiment of the present disclosure. As shown in FIG. 2, the first spatial area circumscribed by the lesion area (the aneurysm area shown in FIG. 2 ), that is, the area of the dashed frame A1 shown in FIG. 2 is obtained. Then, the geometric center of the circumscribed first space area is calculated, and the geometric center is taken as the center, and the first space area is expanded according to the preset expansion coefficient to obtain the expanded second space area, which is shown in Figure 2. A2 area shown in the dashed frame.
如图2所示,在第二空间区域中(图2中A2区域),将属于器官区域(图2中血管区域)且不属于病灶区域(图2中动脉瘤区域)的空间区域,确定为所述异常子区域,也即图2中灰色区域。As shown in Figure 2, in the second spatial region (A2 in Figure 2), the spatial region that belongs to the organ region (the blood vessel region in Figure 2) and does not belong to the lesion region (the aneurysm region in Figure 2) is determined as The abnormal sub-area is the gray area in FIG. 2.
其中,病灶区域外接的第一空间区域,可以是长方体、球体、椭圆体、或者其他立体几何图形,本公开对具体的第一空间区域的形状不作限制。预设的扩展系数为大于1的正实数,可根据临床医师的经验设定,本公开对具体的扩展系数的取值不作限制。The first spatial region circumscribed by the lesion area may be a rectangular parallelepiped, a sphere, an ellipsoid, or other three-dimensional geometric figures, and the present disclosure does not limit the specific shape of the first spatial region. The preset expansion coefficient is a positive real number greater than 1, which can be set according to the experience of the clinician. The present disclosure does not limit the value of the specific expansion coefficient.
应当理解,病灶区域可包括一个或多个连通区域,每一个连通区域可对应一个病灶。在病灶区域包括多个病灶的情况下,本公开的图像处理方法,可并行对病灶区域中存在的每一个连通区域按照步骤S12方法进行处理,得到每一个连通区域对应的异常子区域。It should be understood that the lesion area may include one or more connected areas, and each connected area may correspond to a lesion. In the case where the lesion area includes multiple lesions, the image processing method of the present disclosure can process each connected area in the lesion area in parallel according to the method in step S12 to obtain an abnormal sub-region corresponding to each connected area.
通过这种方式,根据器官区域和病灶区域的位置,从器官区域中确定出异常子区域,可以消除异常子区域与病灶区域的重叠部分,不仅可减少待处理运算量,提高运算效率,而且利于在后续步骤中提高病灶分界面的准确度。In this way, according to the position of the organ area and the lesion area, the abnormal sub-area can be determined from the organ area, which can eliminate the overlap between the abnormal sub-area and the lesion area, which not only reduces the amount of processing to be processed, improves the calculation efficiency, but also benefits Improve the accuracy of the lesion interface in the subsequent steps.
在步骤S12中得到异常子区域后,可在步骤S13中根据异常子区域及病灶区域确定病灶分界面。After the abnormal subregion is obtained in step S12, the lesion interface can be determined according to the abnormal subregion and the lesion region in step S13.
在一种可能的实现方式中,步骤S13可包括:根据所述第一像素点与所述第二像素点之间的距离,从所述第一像素点和所述第二像素点中确定出分界参考点;根据预设的多个参考平面中分界参考点的数量,从所述多个参考平面中确定出病灶分界面,其中,所述多个参考平面分别垂直于所述待处理图像的图像坐标系的各个坐标轴。In a possible implementation manner, step S13 may include: determining from the first pixel point and the second pixel point according to the distance between the first pixel point and the second pixel point Demarcation reference points; according to the number of demarcation reference points in a plurality of preset reference planes, a lesion interface is determined from the plurality of reference planes, wherein the plurality of reference planes are respectively perpendicular to the image to be processed Each coordinate axis of the image coordinate system.
举例来说,根据异常子区域中的第一像素点与病灶区域中的第二像素点之间的距离,从第一像素点与第二像素点中,将第一像素点与第二像素点距离小于或等于距离阈值各像素点,确定为分界参考点。其中,距离阈值可根据临床医师的经验设置,本公开不作限制。For example, according to the distance between the first pixel point in the abnormal sub-region and the second pixel point in the lesion area, from the first pixel point and the second pixel point, the first pixel point and the second pixel point Each pixel with a distance less than or equal to the distance threshold is determined as the demarcation reference point. Among them, the distance threshold can be set according to the clinician's experience, which is not limited in the present disclosure.
在得到分界参考点后,可以检测预设的多个参考平面中每一个参考平面中分界参考点的数量,确定包含分界参考点的数量最多的参考平面,并将该参考平面中分界参考点组成的区域,确定为病灶分界面。After the demarcation reference points are obtained, the number of demarcation reference points in each of the multiple preset reference planes can be detected, the reference plane containing the most demarcation reference points can be determined, and the demarcation reference points in the reference plane can be formed The area is determined to be the boundary of the lesion.
其中,预设的多个参考平面分别垂直于待处理图像的图像坐标系的各个坐标轴。例如,假设待处理图像的图像坐标系为xyz直角坐标系,各个坐标轴为x轴,y轴,z轴。参考平面可包括垂直于x轴(即平行yoz平面)、y轴(即平行xoz平面)以及z轴(即平行xoy平面)的各平面。Wherein, a plurality of preset reference planes are respectively perpendicular to each coordinate axis of the image coordinate system of the image to be processed. For example, suppose that the image coordinate system of the image to be processed is an xyz rectangular coordinate system, and each coordinate axis is an x-axis, a y-axis, and a z-axis. The reference plane may include planes perpendicular to the x-axis (that is, parallel to the yoz plane), the y-axis (that is, parallel to the xoz plane), and the z-axis (that is, parallel to the xoy plane).
应当理解,医生在进行实际的临床诊断中,可根据冠状位,矢状位或轴位上的各二维切片图像,确定病灶分界面,本公开预设的参考平面可代表冠状位,矢状位或轴位上 的各二维切片图像。It should be understood that in actual clinical diagnosis, doctors can determine the interface of the lesion based on the coronal, sagittal or axial two-dimensional slice images. The reference plane preset in the present disclosure can represent the coronal, sagittal Each two-dimensional slice image on the position or axis position.
通过这种方式,可高度模拟临床医生确定病灶分界面的过程,提高了病灶分界面的精准度,有利于在后续步骤中提高病灶的形态学分析结果的精准度。In this way, it is possible to highly simulate the process of clinicians determining the lesion interface, improve the accuracy of the lesion interface, and help improve the accuracy of the morphological analysis results of the lesion in the subsequent steps.
在一种可能的实现方式中,步骤S13中根据所述第一像素点与所述第二像素点之间的距离,从所述第一像素点和所述第二像素点中确定出分界参考点,包括:In a possible implementation manner, in step S13, according to the distance between the first pixel and the second pixel, a boundary reference is determined from the first pixel and the second pixel. Points, including:
针对任一个第一像素点,确定所述第一像素点与所述病灶区域中的各个第二像素点之间的第一距离;在存在小于或等于距离阈值的第一距离的情况下,将所述第一像素点确定为分界参考点;For any first pixel, determine the first distance between the first pixel and each second pixel in the lesion area; if there is a first distance less than or equal to the distance threshold, change The first pixel point is determined as a demarcation reference point;
针对任一个第二像素点,确定所述第二像素点与所述异常子区域中的各个第一像素点之间的第二距离;在存在小于或等于所述距离阈值的第二距离的情况下,将所述第二像素点确定为分界参考点。For any second pixel, determine the second distance between the second pixel and each first pixel in the abnormal sub-region; in the case where there is a second distance less than or equal to the distance threshold Next, the second pixel point is determined as the demarcation reference point.
举例来说,假设异常子区域包括N1个第一像素点P i,其中,i=1,2,…,N1,N1为正整数;病灶区域包括N2个第二像素点Q j,其中,j=1,2,…,N2,N2为正整数,N2和N1的数值可以相等也可以不等,本公开不作限制。 For example, suppose that the abnormal sub-region includes N1 first pixel points P i , where i=1, 2, ..., N1, N1 is a positive integer; the lesion area includes N2 second pixel points Q j , where j =1, 2,..., N2, N2 are positive integers, and the values of N2 and N1 may be equal or unequal, which is not limited in the present disclosure.
针对任一个第一像素点P i,确定第一像素点P i与各个第二像素点Q j(即Q 1,Q 2,…,Q N2)之间的第一距离L ij=|P i-Q j|。 For any of the first pixel P i, P i is determined first pixel and the second pixel each Q j (i.e., Q 1, Q 2, ..., Q N2) between the first distance L ij = | P i -Q j |.
例如:第一像素点P i与第二像素点Q 1的第一距离L i1=|P i-Q 1|; For example: the first distance L i1 between the first pixel point P i and the second pixel point Q 1 =|P i -Q 1 |;
第一像素点P i与第二像素点Q 2的第一距离L i2=|P i-Q 2|; The first distance Li2 between the first pixel point P i and the second pixel point Q 2 = |P i -Q 2 |;
以此类推,第一像素点P i与第二像素点Q N2的第一距离L iN2=|P i-Q N2|; By analogy, the first distance L iN2 between the first pixel point P i and the second pixel point Q N2 = |P i -Q N2 |;
在第一距离L i1~L iN2中存在小于或等于距离阈值的第一距离的情况下,将第一像素点P i确定为分界参考点。其中,距离阈值可根据临床医师的经验设置,本公开不作限制。 In the case where the first distance L i1 ~ L iN2 present in less than or equal to a first threshold distance of the first pixel point P i is determined as a boundary reference point. Among them, the distance threshold can be set according to the experience of the clinician, which is not limited in the present disclosure.
类似的,针对任一个第二像素点Q j,确定第二像素点Q j与各个第一像素点P i(即P 1,P 2,…,P N1)之间的第二距离L ji=|Q j-P i|。 Similarly, for any second pixel point Q j , determine the second distance L ji between the second pixel point Q j and each first pixel point P i (that is, P 1 , P 2 ,..., P N1) |Q j -P i |.
例如:第二像素点Q j与第一像素点P 1的第二距离L j1=|Q j-P 1|; For example: the second distance L j1 between the second pixel point Q j and the first pixel point P 1 = |Q j -P 1 |;
第二像素点Q j与第一像素点P 2的第二距离L j2=|Q j-P 2|; The second distance L j2 between the second pixel point Q j and the first pixel point P 2 = |Q j -P 2 |;
以此类推,第二像素点Q j与第一像素点P N1的第二距离L jN1=|Q j-P N1|; By analogy, the second distance L jN1 between the second pixel point Q j and the first pixel point P N1 = |Q j -P N1 |;
在第二距离L j1~L jN1中存在小于或等于距离阈值的第二距离的情况下,将第二像素点Q j确定为分界参考点。 In the case where there is a second distance less than or equal to the distance threshold in the second distances L j1 ˜L jN1 , the second pixel point Q j is determined as the demarcation reference point.
应当理解,在确定第一像素点P i与第二像素点Q j距离的过程中,可以通过计算两像素点间的欧式距离(Euclidean Distance)、马氏距离(Mahalanobis Distance)、曼哈顿距离(Manhattan Distance)或其他距离度量方式,本公开对具体的距离度量方式不作限制。 It should be understood that in the process of determining a first pixel P i and the pixel j from the second point Q can be calculated by the Euclidean distance between the two pixels (Euclidean Distance), Mahalanobis distance (Mahalanobis Distance), Manhattan distance (Manhattan Distance) or other distance measurement methods, the present disclosure does not limit the specific distance measurement methods.
通过这种方式,在无需人工交互的情况下,可根据第一像素点与第二像素点之间的距离,自动确定出分界参考点。该方式简单便捷,易于实现,有利于后续病灶分界面的快速确定。In this way, without manual interaction, the demarcation reference point can be automatically determined according to the distance between the first pixel and the second pixel. This method is simple and convenient, easy to implement, and is beneficial to the rapid determination of the subsequent lesion interface.
在步骤S13中得到病灶分界面后,可在步骤S14中根据病灶分界面及病灶区域确定该病灶的形态学分析结果。After the lesion interface is obtained in step S13, the morphological analysis result of the lesion can be determined according to the lesion interface and the lesion area in step S14.
在一种可能的实现方式中,所述病灶的形态学分析结果包括所述病灶的形态学参数,所述形态学参数包括参考直径、最大直径、宽度以及高度,步骤S14可包括:In a possible implementation, the morphological analysis result of the lesion includes morphological parameters of the lesion, and the morphological parameters include a reference diameter, a maximum diameter, a width, and a height. Step S14 may include:
在所述病灶分界面包括的分界参考点中,将距离最大的两个分界参考点间的距离,确定为所述病灶的参考直径;Among the demarcation reference points included in the lesion interface, the distance between the two demarcation reference points with the largest distance is determined as the reference diameter of the lesion;
在所述病灶区域包括的第二像素点中,将第二像素点与所述病灶分界面的几何中心的最大距离,确定为所述病灶的最大直径;Among the second pixels included in the lesion area, determining the maximum distance between the second pixel and the geometric center of the interface of the lesion as the maximum diameter of the lesion;
在所述病灶区域包括的第二像素点中,在垂直所述最大直径的方向上,将距离最大的两个第二像素点间的距离,确定为所述病灶的宽度;In the second pixel points included in the lesion area, in a direction perpendicular to the maximum diameter, the distance between the two second pixel points with the largest distance is determined as the width of the lesion;
在所述病灶区域包括的第二像素点中,将第二像素点与所述病灶分界面的最大距离,确定为所述病灶的高度。Among the second pixels included in the lesion area, the maximum distance between the second pixel and the interface of the lesion is determined as the height of the lesion.
举例来说,图3示出根据本公开实施例的病灶的形态学分析结果的示意图,如图3所示,在所述病灶分界面包括的各个分界参考点中,分界参考点M1和分界参考点M2之间的距离最大。可将分界参考点M1和分界参考点M2之间的距离,确定为病灶的参考直径,也即图3所示的瘤颈。For example, FIG. 3 shows a schematic diagram of a morphological analysis result of a lesion according to an embodiment of the present disclosure. As shown in FIG. The distance between points M2 is the largest. The distance between the demarcation reference point M1 and the demarcation reference point M2 can be determined as the reference diameter of the lesion, that is, the tumor neck shown in FIG. 3.
在病灶区域包括的第二像素点中,第二像素点M3和病灶分界面的几何中心M0的距离最大。可将第二像素点M3和病灶分界面的几何中心M0的距离,确定为病灶的最大直径。Among the second pixel points included in the lesion area, the distance between the second pixel point M3 and the geometric center M0 of the interface of the lesion is the largest. The distance between the second pixel point M3 and the geometric center M0 of the interface of the lesion can be determined as the maximum diameter of the lesion.
在病灶区域包括的第二像素点中,在垂直最大直径的方向上,第二像素点M4和第二像素点M5之间的距离最大,可将第二像素点M4和第二像素点M5之间的距离,确定为病灶的宽度,也即图3所示的瘤宽。Among the second pixel points included in the lesion area, in the direction of the vertical maximum diameter, the distance between the second pixel point M4 and the second pixel point M5 is the largest, and the second pixel point M4 and the second pixel point M5 can be separated The distance between them is determined as the width of the lesion, that is, the width of the tumor as shown in Figure 3.
其中,最大直径的方向,为第二像素点M3和病灶分界面的几何中心M0所确定的直线所在的方向。The direction of the largest diameter is the direction of the straight line determined by the geometric center M0 of the interface between the second pixel point M3 and the lesion.
在病灶区域包括的第二像素点中,第二像素点M3与病灶分界面所在的平面的距离最大,并且第二像素点M3至病灶分界面所在平面的垂足为M6,可将第二像素点M3与所述病灶分界面所在平面的距离,确定为病灶的高度,也即图3所示的瘤高。Among the second pixel points included in the lesion area, the distance between the second pixel point M3 and the plane where the lesion interface is located is the largest, and the vertical foot from the second pixel point M3 to the plane where the lesion interface is located is M6. The distance between the point M3 and the plane where the interface of the lesion is located is determined as the height of the lesion, that is, the height of the tumor as shown in FIG. 3.
通过这种方式,根据病灶分界面及病灶区域确定该病灶的形态学分析结果,可以实现在无需医生辅助的情况下,自动并准确的确定病灶的形态学分析结果,减少医生的工作量,提高医生的诊断和治疗的效率。In this way, the morphological analysis result of the lesion is determined according to the lesion interface and the area of the lesion, and the morphological analysis result of the lesion can be determined automatically and accurately without the assistance of the doctor, which reduces the workload of the doctor and improves The efficiency of the doctor’s diagnosis and treatment.
因此,根据本公开实施例的图像处理方法,能够通过对待处理图像进行分割处理,确定器官区域和病灶区域,并根据器官区域和病灶区域的位置关系,确定出病灶分界面;最后根据病灶分界面以及病灶区域,确定出病灶的形态学分析结果。该方法能够自动且准确地确定出图像中病灶的形态学分析结果,从而减少医务人员的工作量,提高医务人员的工作效率。Therefore, according to the image processing method of the embodiment of the present disclosure, the organ area and the lesion area can be determined by segmentation of the image to be processed, and the lesion interface can be determined according to the positional relationship between the organ area and the lesion area; finally according to the lesion interface As well as the area of the lesion, the morphological analysis result of the lesion is determined. This method can automatically and accurately determine the morphological analysis result of the lesion in the image, thereby reducing the workload of medical staff and improving the work efficiency of medical staff.
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的 内在逻辑确定。It can be understood that, without violating the principle logic, the various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment, which is limited in length and will not be repeated in this disclosure. Those skilled in the art can understand that, in the above-mentioned method of the specific implementation, the specific execution order of each step should be determined by its function and possible internal logic.
此外,本公开还提供了图像处理装置、电子设备、计算机可读存储介质、程序,上述均可用来实现本公开提供的任一种图像处理方法,相应技术方案和描述和参见方法部分的相应记载,不再赘述。In addition, the present disclosure also provides image processing devices, electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any image processing method provided in the present disclosure. For the corresponding technical solutions and descriptions, refer to the corresponding records in the method section. ,No longer.
图4示出根据本公开实施例的图像处理装置的框图,如图4所示,所述装置包括:Fig. 4 shows a block diagram of an image processing device according to an embodiment of the present disclosure. As shown in Fig. 4, the device includes:
分割模块41,用于对待处理图像进行分割处理,确定与所述待处理图像中的目标器官对应的器官区域,以及与所述目标器官上的病灶对应的病灶区域;The segmentation module 41 is configured to perform segmentation processing on the image to be processed, and determine the organ area corresponding to the target organ in the image to be processed, and the lesion area corresponding to the lesion on the target organ;
异常子区域确定模块42,用于根据所述器官区域和所述病灶区域的位置,从所述器官区域中确定出异常子区域,所述异常子区域对应于承载所述病灶的器官部分;The abnormal sub-region determination module 42 is configured to determine an abnormal sub-region from the organ region according to the positions of the organ region and the lesion region, and the abnormal sub-region corresponds to the part of the organ that carries the lesion;
病灶分界面确定模块43,用于根据所述异常子区域中的第一像素点与所述病灶区域中的第二像素点之间的位置关系,确定所述异常子区域与所述病灶区域之间的病灶分界面;The lesion interface determination module 43 is configured to determine the difference between the abnormal sub-region and the lesion area according to the positional relationship between the first pixel point in the abnormal sub-region and the second pixel point in the lesion area The interface between the lesions;
病灶分析模块44,用于根据所述病灶分界面以及所述病灶区域,确定所述病灶的形态学分析结果。The lesion analysis module 44 is configured to determine the morphological analysis result of the lesion according to the interface of the lesion and the area of the lesion.
在一种可能的实现方式中,分割模块41包括:预处理子模块411:用于对待处理图像进行归一化处理,得到处理后的第一图像;第一分割子模块412:用于对所述第一图像进行第一分割处理,确定所述第一图像中的器官区域;第二分割子模块413:用于对所述第一图像进行第二分割处理,确定所述第一图像中的病灶区域。In a possible implementation, the segmentation module 41 includes: a preprocessing sub-module 411: used to normalize the image to be processed to obtain the processed first image; the first segmentation sub-module 412: used to Perform a first segmentation process on the first image to determine the organ region in the first image; a second segmentation sub-module 413: perform a second segmentation process on the first image to determine the organ region in the first image The lesion area.
在一种可能的实现方式中,第一分割子模块412用于:根据第一预设尺寸,对所述第一图像进行切割,得到第一采样图像块;将所述第一采样图像块输入第一分割网络中进行分割,得到所述第一采样图像块的分割结果;对多个第一采样图像块的分割结果进行融合,得到所述第一图像中的器官区域;In a possible implementation manner, the first segmentation submodule 412 is configured to: cut the first image according to a first preset size to obtain a first sampled image block; and input the first sampled image block Perform segmentation in the first segmentation network to obtain a segmentation result of the first sampled image block; fuse the segmentation results of a plurality of first sampled image blocks to obtain the organ region in the first image;
其中,第二分割子模块413用于:根据第二预设尺寸,对所述第一图像进行切割,得到第二采样图像块;将所述第二采样图像块输入第二分割网络中进行分割,得到所述第二采样图像块的分割结果;对多个第二采样图像块的分割结果进行融合,得到所述第一图像中的病灶区域。Wherein, the second segmentation submodule 413 is configured to: cut the first image according to a second preset size to obtain a second sampled image block; input the second sampled image block into a second segmentation network for segmentation , Obtain the segmentation result of the second sampled image block; fuse the segmentation results of multiple second sampled image blocks to obtain the lesion area in the first image.
在一种可能的实现方式中,异常子区域确定模块42用于:获取与所述病灶区域外接的第一空间区域;根据预设的扩展系数,对所述第一空间区域进行扩展,得到扩展后的第二空间区域;将所述第二空间区域中,属于所述器官区域且不属于所述病灶区域的空间区域,确定为所述异常子区域。In a possible implementation, the abnormal sub-region determination module 42 is configured to: obtain a first spatial region circumscribed to the lesion area; expand the first spatial region according to a preset expansion coefficient to obtain the expansion The second spatial area after the second spatial area; in the second spatial area, a spatial area that belongs to the organ area and does not belong to the lesion area is determined as the abnormal sub-area.
在一种可能的实现方式中,病灶分界面确定模块43用于:根据所述第一像素点与所述第二像素点之间的距离,从所述第一像素点和所述第二像素点中确定出分界参考点;根据预设的多个参考平面中分界参考点的数量,从所述多个参考平面中确定出病灶分界面,其中,所述多个参考平面分别垂直于所述待处理图像的图像坐标系的各个坐标轴。In a possible implementation, the lesion interface determination module 43 is configured to: according to the distance between the first pixel point and the second pixel point, from the first pixel point and the second pixel point The demarcation reference point is determined from the points; and the lesion demarcation interface is determined from the multiple reference planes according to the number of the demarcation reference points in the preset multiple reference planes, wherein the multiple reference planes are respectively perpendicular to the Each coordinate axis of the image coordinate system of the image to be processed.
在一种可能的实现方式中,根据所述第一像素点与所述第二像素点之间的距离,从所述第一像素点和所述第二像素点中确定出分界参考点,包括:针对任一个第一像素点, 确定所述第一像素点与所述病灶区域中的各个第二像素点之间的第一距离;在存在小于或等于距离阈值的第一距离的情况下,将所述第一像素点确定为分界参考点;针对任一个第二像素点,确定所述第二像素点与所述异常子区域中的各个第一像素点之间的第二距离;在存在小于或等于所述距离阈值的第二距离的情况下,将所述第二像素点确定为分界参考点。In a possible implementation manner, determining a demarcation reference point from the first pixel and the second pixel according to the distance between the first pixel and the second pixel includes : For any first pixel, determine the first distance between the first pixel and each second pixel in the lesion area; if there is a first distance less than or equal to the distance threshold, Determine the first pixel point as a demarcation reference point; for any second pixel point, determine the second distance between the second pixel point and each first pixel point in the abnormal sub-region; In the case of a second distance less than or equal to the distance threshold, the second pixel point is determined as the demarcation reference point.
在一种可能的实现方式中,所述病灶的形态学分析结果包括所述病灶的形态学参数,所述形态学参数包括参考直径、最大直径、宽度以及高度,其中,病灶分析模块44用于:在所述病灶分界面包括的分界参考点中,将距离最大的两个分界参考点间的距离,确定为所述病灶的参考直径;在所述病灶区域包括的第二像素点中,将第二像素点与所述病灶分界面的几何中心的最大距离,确定为所述病灶的最大直径;在所述病灶区域包括的第二像素点中,在垂直所述最大直径的方向上,将距离最大的两个第二像素点间的距离,确定为所述病灶的宽度;在所述病灶区域包括的第二像素点中,将第二像素点与所述病灶分界面的最大距离,确定为所述病灶的高度。In a possible implementation manner, the morphological analysis result of the lesion includes morphological parameters of the lesion, and the morphological parameters include a reference diameter, a maximum diameter, a width, and a height, wherein the lesion analysis module 44 is configured to : Among the demarcation reference points included in the lesion interface, the distance between the two demarcation reference points with the largest distance is determined as the reference diameter of the lesion; among the second pixel points included in the lesion area, the The maximum distance between the second pixel point and the geometric center of the interface of the lesion is determined as the maximum diameter of the lesion; among the second pixel points included in the lesion area, in the direction perpendicular to the maximum diameter, The distance between the two second pixels with the largest distance is determined as the width of the lesion; among the second pixels included in the lesion area, the maximum distance between the second pixel and the interface of the lesion is determined Is the height of the lesion.
在一种可能的实现方式中,所述待处理图像包括三维的血管造影图像,所述目标器官包括血管,所述目标器官上的病灶包括动脉瘤,所述异常子区域包括载瘤动脉区域,所述病灶分界面包括所述动脉瘤的瘤颈平面。In a possible implementation manner, the image to be processed includes a three-dimensional angiographic image, the target organ includes a blood vessel, the lesion on the target organ includes an aneurysm, and the abnormal sub-region includes a tumor-bearing artery region, The lesion interface includes the aneurysm neck plane.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments. For specific implementation, refer to the description of the above method embodiments. For brevity, here No longer.
本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。计算机可读存储介质可以是非易失性计算机可读存储介质。The embodiments of the present disclosure also provide a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above-mentioned method when executed by a processor. The computer-readable storage medium may be a non-volatile computer-readable storage medium.
本公开实施例还提出一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。An embodiment of the present disclosure also proposes an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
电子设备可以被提供为终端、服务器或其它形态的设备。The electronic device can be provided as a terminal, server or other form of device.
图5示出根据本公开实施例的一种电子设备800的框图。例如,电子设备800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。FIG. 5 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and other terminals.
参照图5,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。5, the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, and a sensor component 814 , And communication component 816.
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations in the electronic device 800. Examples of these data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable and Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。The power supply component 806 provides power for various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the electronic device 800.
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module. The above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如互补金属氧化物半导体(CMOS)或电荷耦合装置(CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor component 814 includes one or more sensors for providing the electronic device 800 with various aspects of state evaluation. For example, the sensor component 814 can detect the on/off status of the electronic device 800 and the relative positioning of the components. For example, the component is the display and the keypad of the electronic device 800. The sensor component 814 can also detect the electronic device 800 or the electronic device 800. The position of the component changes, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration/deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact. The sensor component 814 may also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如无线网络(WiFi),第二代移动通信技 术(2G),第三代移动通信技术(3G),第四代移动通信技术(4G)或第五代移动通信技术(5G),或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on communication standards, such as wireless network (WiFi), second-generation mobile communication technology (2G), third-generation mobile communication technology (3G), fourth-generation mobile communication technology (4G) or The fifth-generation mobile communication technology (5G), or a combination of them. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field-available A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to complete the foregoing method.
图6示出根据本公开实施例的一种电子设备1900的框图。例如,电子设备1900可以被提供为一服务器。参照图6,电子设备1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法。FIG. 6 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. 6, the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as application programs. The application program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above-mentioned method.
电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线网络接口1950被配置为将电子设备1900连接到网络,和一个输入输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如微软服务器操作系统(Windows ServerTM),苹果公司推出的基于图形用户界面操作系统(Mac OS XTM),多用户多进程的计算机操作系统(UnixTM),自由和开放原代码的类Unix操作系统(LinuxTM),开放原代码的类Unix操作系统(FreeBSDTM)或类似。The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) interface 1958 . The electronic device 1900 can operate based on the operating system stored in the memory 1932, such as the Microsoft Server Operating System (Windows ServerTM), the graphical user interface operating system (Mac OS XTM) launched by Apple, and the multi-user and multi-process computer operating system (UnixTM) ), free and open source Unix-like operating system (LinuxTM), open source Unix-like operating system (FreeBSDTM) or similar.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器1932,上述计算机程序指令可由电子设备1900的处理组件1922执行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to complete the foregoing method.
本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是(但不限于)电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意 合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。The computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a printer with instructions stored thereon The protruding structure in the hole card or the groove, and any suitable combination of the above. The computer-readable storage medium used here is not interpreted as a transient signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission of electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。The computer program instructions used to perform the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, status setting data, or in one or more programming languages. Source code or object code written in any combination, the programming language includes object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. Computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on a remote computer, or entirely on the remote computer or server implement. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect to the user's computer) connect). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be personalized by using the status information of the computer-readable program instructions. The computer-readable program instructions are executed to realize various aspects of the present disclosure.
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Here, various aspects of the present disclosure are described with reference to flowcharts and/or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowcharts and/or block diagrams, and combinations of blocks in the flowcharts and/or block diagrams, can be implemented by computer-readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine that makes these instructions when executed by the processor of the computer or other programmable data processing device , A device that implements the functions/actions specified in one or more blocks in the flowchart and/or block diagram is produced. It is also possible to store these computer-readable program instructions in a computer-readable storage medium. These instructions make computers, programmable data processing apparatuses, and/or other devices work in a specific manner, so that the computer-readable medium storing the instructions includes An article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions onto a computer, other programmable data processing device, or other equipment, so that a series of operation steps are executed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , So that the instructions executed on the computer, other programmable data processing apparatus, or other equipment realize the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序 产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the accompanying drawings show the possible implementation architecture, functions, and operations of the system, method, and computer program product according to multiple embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram can represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction contains one or more components for realizing the specified logical function. Executable instructions. In some alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The computer program product can be specifically implemented by hardware, software, or a combination thereof. In an optional embodiment, the computer program product is specifically embodied as a computer storage medium. In another optional embodiment, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc. Wait.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Without departing from the scope and spirit of the described embodiments, many modifications and changes are obvious to those of ordinary skill in the art. The choice of terms used herein is intended to best explain the principles, practical applications, or improvements to the technology in the market for each embodiment, or to enable those of ordinary skill in the art to understand the various embodiments disclosed herein.

Claims (11)

  1. 一种图像处理方法,其特征在于,所述方法包括:An image processing method, characterized in that the method includes:
    对待处理图像进行分割处理,确定与所述待处理图像中的目标器官对应的器官区域,以及与所述目标器官上的病灶对应的病灶区域;Performing segmentation processing on the image to be processed, and determining the organ area corresponding to the target organ in the image to be processed, and the lesion area corresponding to the lesion on the target organ;
    根据所述器官区域和所述病灶区域的位置,从所述器官区域中确定出异常子区域,所述异常子区域对应于承载所述病灶的器官部分;Determining an abnormal sub-area from the organ area according to the positions of the organ area and the lesion area, the abnormal sub-area corresponding to the part of the organ bearing the lesion;
    根据所述异常子区域中的第一像素点与所述病灶区域中的第二像素点之间的位置关系,确定所述异常子区域与所述病灶区域之间的病灶分界面;Determine the lesion interface between the abnormal sub-region and the lesion area according to the positional relationship between the first pixel in the abnormal sub-region and the second pixel in the lesion area;
    根据所述病灶分界面以及所述病灶区域,确定所述病灶的形态学分析结果。Determine the morphological analysis result of the lesion according to the interface of the lesion and the area of the lesion.
  2. 根据权利要求1所述的方法,其特征在于,根据所述异常子区域中的第一像素点与所述病灶区域中的第二像素点之间的位置关系,确定所述异常子区域与所述病灶区域之间的病灶分界面,包括:The method according to claim 1, characterized in that, according to the positional relationship between the first pixel point in the abnormal sub-region and the second pixel point in the lesion area, the abnormal sub-region and the second pixel point are determined Describes the lesion interface between the lesion areas, including:
    根据所述第一像素点与所述第二像素点之间的距离,从所述第一像素点和所述第二像素点中确定出分界参考点;Determining a demarcation reference point from the first pixel and the second pixel according to the distance between the first pixel and the second pixel;
    根据预设的多个参考平面中分界参考点的数量,从所述多个参考平面中确定出病灶分界面,其中,所述多个参考平面分别垂直于所述待处理图像的图像坐标系的各个坐标轴。According to the number of demarcation reference points in the preset multiple reference planes, the lesion interface is determined from the multiple reference planes, wherein the multiple reference planes are respectively perpendicular to the image coordinate system of the image to be processed Each coordinate axis.
  3. 根据权利要求2所述的方法,其特征在于,根据所述第一像素点与所述第二像素点之间的距离,从所述第一像素点和所述第二像素点中确定出分界参考点,包括:The method according to claim 2, wherein the boundary is determined from the first pixel point and the second pixel point according to the distance between the first pixel point and the second pixel point Reference points, including:
    针对任一个第一像素点,确定所述第一像素点与所述病灶区域中的各个第二像素点之间的第一距离;For any first pixel, determine the first distance between the first pixel and each second pixel in the lesion area;
    在存在小于或等于距离阈值的第一距离的情况下,将所述第一像素点确定为分界参考点;In a case where there is a first distance less than or equal to the distance threshold, determining the first pixel point as a demarcation reference point;
    针对任一个第二像素点,确定所述第二像素点与所述异常子区域中的各个第一像素点之间的第二距离;For any second pixel, determine a second distance between the second pixel and each first pixel in the abnormal sub-region;
    在存在小于或等于所述距离阈值的第二距离的情况下,将所述第二像素点确定为分界参考点。In a case where there is a second distance less than or equal to the distance threshold, the second pixel point is determined as a demarcation reference point.
  4. 根据权利要求1所述的方法,其特征在于,根据所述器官区域和所述病灶区域的位置,从所述器官区域中确定出异常子区域,包括:The method according to claim 1, wherein the determining an abnormal sub-area from the organ area according to the positions of the organ area and the lesion area comprises:
    获取与所述病灶区域外接的第一空间区域;Acquiring a first spatial area circumscribing the lesion area;
    根据预设的扩展系数,对所述第一空间区域进行扩展,得到扩展后的第二空间区域;Expand the first spatial area according to a preset expansion coefficient to obtain an expanded second spatial area;
    将所述第二空间区域中,属于所述器官区域且不属于所述病灶区域的空间区域,确定为所述异常子区域。In the second spatial region, a spatial region that belongs to the organ region and does not belong to the lesion region is determined as the abnormal subregion.
  5. 根据权利要求1所述的方法,其特征在于,所述病灶的形态学分析结果包括所述病灶的形态学参数,所述形态学参数包括参考直径、最大直径、宽度以及高度,The method according to claim 1, wherein the morphological analysis result of the lesion includes morphological parameters of the lesion, and the morphological parameters include a reference diameter, a maximum diameter, a width, and a height,
    其中,所述根据所述病灶分界面以及所述病灶区域,确定所述病灶的形态学分析结果,包括:Wherein, the determining the morphological analysis result of the lesion according to the interface of the lesion and the area of the lesion includes:
    在所述病灶分界面包括的分界参考点中,将距离最大的两个分界参考点间的距离,确定为所述病灶的参考直径;Among the demarcation reference points included in the lesion interface, the distance between the two demarcation reference points with the largest distance is determined as the reference diameter of the lesion;
    在所述病灶区域包括的第二像素点中,将第二像素点与所述病灶分界面的几何中心的最大距离,确定为所述病灶的最大直径;Among the second pixels included in the lesion area, determining the maximum distance between the second pixel and the geometric center of the interface of the lesion as the maximum diameter of the lesion;
    在所述病灶区域包括的第二像素点中,在垂直所述最大直径的方向上,将距离最大的两个第二像素点间的距离,确定为所述病灶的宽度;In the second pixel points included in the lesion area, in a direction perpendicular to the maximum diameter, the distance between the two second pixel points with the largest distance is determined as the width of the lesion;
    在所述病灶区域包括的第二像素点中,将第二像素点与所述病灶分界面的最大距离,确定为所述病灶的高度。Among the second pixels included in the lesion area, the maximum distance between the second pixel and the interface of the lesion is determined as the height of the lesion.
  6. 根据权利要求1所述的方法,其特征在于,对待处理图像进行分割处理,确定与所述待处理图像中的目标器官对应的器官区域,以及与所述目标器官上的病灶对应的病灶区域,包括:The method according to claim 1, wherein the segmentation process is performed on the image to be processed, the organ area corresponding to the target organ in the image to be processed is determined, and the lesion area corresponding to the lesion on the target organ is determined, include:
    对待处理图像进行归一化处理,得到处理后的第一图像;Perform normalization processing on the image to be processed to obtain the processed first image;
    对所述第一图像进行第一分割处理,确定所述第一图像中的器官区域;Performing a first segmentation process on the first image to determine the organ region in the first image;
    对所述第一图像进行第二分割处理,确定所述第一图像中的病灶区域。Performing a second segmentation process on the first image to determine a lesion area in the first image.
  7. 根据权利要求6所述的方法,其特征在于,对所述第一图像进行第一分割处理,确定所述第一图像中的器官区域,包括:The method according to claim 6, wherein performing a first segmentation process on the first image to determine the organ region in the first image comprises:
    根据第一预设尺寸,对所述第一图像进行切割,得到第一采样图像块;Cutting the first image according to a first preset size to obtain a first sampled image block;
    将所述第一采样图像块输入第一分割网络中进行分割,得到所述第一采样图像块的分割结果;Inputting the first sampled image block into a first segmentation network for segmentation to obtain a segmentation result of the first sampled image block;
    对多个第一采样图像块的分割结果进行融合,得到所述第一图像中的器官区域;Fusing the segmentation results of the multiple first sampled image blocks to obtain the organ region in the first image;
    其中,对所述第一图像进行第二分割处理,确定所述第一图像中的病灶区域,包括:Wherein, performing a second segmentation process on the first image to determine the lesion area in the first image includes:
    根据第二预设尺寸,对所述第一图像进行切割,得到第二采样图像块;Cutting the first image according to the second preset size to obtain a second sampled image block;
    将所述第二采样图像块输入第二分割网络中进行分割,得到所述第二采样图像块的分割结果;Inputting the second sampled image block into a second segmentation network for segmentation to obtain a segmentation result of the second sampled image block;
    对多个第二采样图像块的分割结果进行融合,得到所述第一图像中的病灶区域。The segmentation results of the multiple second sampling image blocks are merged to obtain the lesion area in the first image.
  8. 根据权利要求1-7中任意一项所述的方法,其特征在于,所述待处理图像包括三维的血管造影图像,所述目标器官包括血管,所述目标器官上的病灶包括动脉瘤,所述异常子区域包括载瘤动脉区域,所述病灶分界面包括所述动脉瘤的瘤颈平面。The method according to any one of claims 1-7, wherein the image to be processed comprises a three-dimensional angiographic image, the target organ comprises a blood vessel, the lesion on the target organ comprises an aneurysm, and The abnormal sub-region includes the tumor-bearing artery region, and the lesion interface includes the tumor neck plane of the aneurysm.
  9. 一种图像处理装置,其特征在于,包括:An image processing device, characterized in that it comprises:
    分割模块,用于对待处理图像进行分割处理,确定与所述待处理图像中的目标器官对应的器官区域,以及与所述目标器官上的病灶对应的病灶区域;A segmentation module, configured to perform segmentation processing on the image to be processed, and determine the organ area corresponding to the target organ in the image to be processed, and the lesion area corresponding to the lesion on the target organ;
    异常子区域确定模块,用于根据所述器官区域和所述病灶区域的位置,从所述器官区域中确定出异常子区域,所述异常子区域对应于承载所述病灶的器官部分;An abnormal subregion determining module, configured to determine an abnormal subregion from the organ region according to the positions of the organ region and the lesion region, the abnormal subregion corresponding to the part of the organ bearing the lesion;
    病灶分界面确定模块,用于根据所述异常子区域中的第一像素点与所述病灶区域中的第二像素点之间的位置关系,确定所述异常子区域与所述病灶区域之间的病灶分界面;The lesion interface determination module is configured to determine the relationship between the abnormal sub-region and the lesion area according to the positional relationship between the first pixel point in the abnormal sub-region and the second pixel point in the lesion area The interface of the lesion;
    病灶分析模块,用于根据所述病灶分界面以及所述病灶区域,确定所述病灶的形态学分析结果。The lesion analysis module is configured to determine the morphological analysis result of the lesion based on the lesion interface and the lesion area.
  10. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    处理器;processor;
    用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
    其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1至8中任意一项所述的方法。Wherein, the processor is configured to call instructions stored in the memory to execute the method according to any one of claims 1 to 8.
  11. 一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现权利要求1至8中任意一项所述的方法。A computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the method according to any one of claims 1 to 8 when the computer program instructions are executed by a processor.
PCT/CN2021/122143 2021-03-01 2021-09-30 Image processing method and apparatus, and electronic device and storage medium WO2021259391A2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110226182.4A CN112967291B (en) 2021-03-01 2021-03-01 Image processing method and device, electronic equipment and storage medium
CN202110226182.4 2021-03-01

Publications (2)

Publication Number Publication Date
WO2021259391A2 true WO2021259391A2 (en) 2021-12-30
WO2021259391A3 WO2021259391A3 (en) 2022-02-17

Family

ID=76276087

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/122143 WO2021259391A2 (en) 2021-03-01 2021-09-30 Image processing method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN112967291B (en)
WO (1) WO2021259391A2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116740465A (en) * 2023-07-07 2023-09-12 国医通(北京)科技发展有限公司 Focus sorter and equipment based on peritoneal dialysis liquid image segmentation
CN118197610A (en) * 2024-05-17 2024-06-14 中国人民解放军空军军医大学 Auxiliary identification method and system for herpetic neuralgia based on structural magnetic resonance

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3646240A4 (en) 2017-06-26 2021-03-17 The Research Foundation for The State University of New York System, method, and computer-accessible medium for virtual pancreatography
CN112967291B (en) * 2021-03-01 2021-11-16 北京安德医智科技有限公司 Image processing method and device, electronic equipment and storage medium
CN113506262A (en) * 2021-07-07 2021-10-15 上海商汤智能科技有限公司 Image processing method, image processing device, related equipment and storage medium
CN114820584B (en) * 2022-05-27 2023-02-21 北京安德医智科技有限公司 Lung focus positioner

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1913869A3 (en) * 2006-10-19 2008-12-10 Esaote S.p.A. Diagnostic imaging method and apparatus for the anatomical region of the pelvic floor
US10176569B2 (en) * 2016-09-07 2019-01-08 International Business Machines Corporation Multiple algorithm lesion segmentation
CN110210487A (en) * 2019-05-30 2019-09-06 上海商汤智能科技有限公司 A kind of image partition method and device, electronic equipment and storage medium
CN111950595A (en) * 2020-07-14 2020-11-17 十堰市太和医院(湖北医药学院附属医院) Liver focus image processing method, system, storage medium, program, and terminal
CN112116575A (en) * 2020-09-18 2020-12-22 上海商汤智能科技有限公司 Image processing method and device, electronic equipment and storage medium
CN112070763A (en) * 2020-09-18 2020-12-11 上海商汤智能科技有限公司 Image data processing method and device, electronic equipment and storage medium
CN112967291B (en) * 2021-03-01 2021-11-16 北京安德医智科技有限公司 Image processing method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116740465A (en) * 2023-07-07 2023-09-12 国医通(北京)科技发展有限公司 Focus sorter and equipment based on peritoneal dialysis liquid image segmentation
CN116740465B (en) * 2023-07-07 2024-05-17 国医通(北京)科技发展有限公司 Focus sorter and equipment based on peritoneal dialysis liquid image segmentation
CN118197610A (en) * 2024-05-17 2024-06-14 中国人民解放军空军军医大学 Auxiliary identification method and system for herpetic neuralgia based on structural magnetic resonance

Also Published As

Publication number Publication date
WO2021259391A3 (en) 2022-02-17
CN112967291A (en) 2021-06-15
CN112967291B (en) 2021-11-16

Similar Documents

Publication Publication Date Title
WO2021259391A2 (en) Image processing method and apparatus, and electronic device and storage medium
US20210158533A1 (en) Image processing method and apparatus, and storage medium
US20220198775A1 (en) Image processing method and apparatus, electronic device, storage medium and computer program
WO2021147257A1 (en) Network training method and apparatus, image processing method and apparatus, and electronic device and storage medium
TWI713054B (en) Image segmentation method and device, electronic equipment and storage medium
TWI755175B (en) Image segmentation method, electronic device and storage medium
WO2022151755A1 (en) Target detection method and apparatus, and electronic device, storage medium, computer program product and computer program
CN111899268B (en) Image segmentation method and device, electronic equipment and storage medium
CN113222038B (en) Breast lesion classification and positioning method and device based on nuclear magnetic image
CN112541928A (en) Network training method and device, image segmentation method and device and electronic equipment
WO2021259390A2 (en) Coronary artery calcified plaque detection method and apparatus
WO2022121170A1 (en) Image processing method and apparatus, electronic device, storage medium, and program
US20220058821A1 (en) Medical image processing method, apparatus, and device, medium, and endoscope
WO2021189848A1 (en) Model training method and apparatus, cup-to-disc ratio determination method and apparatus, and device and storage medium
CN113012166A (en) Intracranial aneurysm segmentation method and device, electronic device, and storage medium
CN112927239A (en) Image processing method, image processing device, electronic equipment and storage medium
WO2022242046A1 (en) Method and apparatus for presenting medical image, and electronic device, storage medium and computer program
TWI767614B (en) Image processing method electronic equipment storage medium and program product
CN112116575A (en) Image processing method and device, electronic equipment and storage medium
TW202118440A (en) Neural network training and image segmentation method, electronic device and computer storage medium
CN117218133A (en) Lung image processing method and device, electronic equipment and storage medium
WO2021259394A2 (en) Image processing method and apparatus, and electronic device and storage medium
TW202203151A (en) Image processing method electronic equipment and computer readable storage medium
CN113192606A (en) Medical data processing method and device, electronic equipment and storage medium
CN113553460B (en) Image retrieval method and device, electronic device and storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21829883

Country of ref document: EP

Kind code of ref document: A2