WO2023280197A1 - Image processing method and related apparatus, electronic device, storage medium and program - Google Patents

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

Info

Publication number
WO2023280197A1
WO2023280197A1 PCT/CN2022/104069 CN2022104069W WO2023280197A1 WO 2023280197 A1 WO2023280197 A1 WO 2023280197A1 CN 2022104069 W CN2022104069 W CN 2022104069W WO 2023280197 A1 WO2023280197 A1 WO 2023280197A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
area
image
detection result
detection
Prior art date
Application number
PCT/CN2022/104069
Other languages
French (fr)
Chinese (zh)
Inventor
宋佳
王一博
姜超
Original Assignee
上海商汤智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海商汤智能科技有限公司 filed Critical 上海商汤智能科技有限公司
Publication of WO2023280197A1 publication Critical patent/WO2023280197A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • 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
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10072Tomographic images
    • G06T2207/10081Computed x-ray tomography [CT]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10072Tomographic images
    • G06T2207/10088Magnetic resonance imaging [MRI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • 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/20084Artificial neural networks [ANN]
    • 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
    • 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/30196Human being; Person
    • 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/30232Surveillance

Definitions

  • This application relates to the technical field of image processing, involving but not limited to an image processing method and related devices, electronic equipment, storage media and programs.
  • target detection can detect the image area of the target object in the image for subsequent image analysis.
  • Embodiments of the present application provide an image processing method and related devices, electronic equipment, computer storage media, and computer programs.
  • An embodiment of the present application provides an image processing method, which is applied to electronic devices.
  • the method includes: obtaining the original area where the target object is located in the image to be tested, wherein the original area contains several first pixel points, and there are A number of second pixels; perform outreach detection on each second pixel in parallel to obtain a detection result, wherein the detection result includes whether to use the second pixel as a new first pixel; based on the original area and the detection result, obtain the target The bounding area of the object.
  • the original area where the target object is located in the image to be tested is obtained, and the original area contains several first pixels, and there are several second pixels outside the original area.
  • the external expansion is performed on each second pixel in parallel Detection, to obtain the detection result, and the detection result includes whether to use the second pixel as the new first pixel, so that based on the original area and the detection result, the expanded area of the target object is obtained.
  • the expanded detection is based on each first pixel. It is performed by two pixels, so it can realize pixel-level area expansion, which is beneficial to improve the accuracy of area expansion.
  • the expansion detection is executed in parallel, it is beneficial to improve the speed of area expansion. Therefore, the accuracy and speed of area expansion can be improved.
  • the performing the extension detection on each of the second pixel points in parallel includes: performing the extension detection on each of the second pixel points in parallel in a manner that each calculation kernel runs in parallel. Therefore, each computing core runs in parallel the extension detection performed on each second pixel point, which can further improve the calculation efficiency of region extension.
  • the first reference areas where the second pixel points are respectively located overlap with the original area. Therefore, for each second pixel point, the first reference area where it is located intersects with the original one, so before the extension detection, the pixels located outside the original area and farther away from the original area can be excluded, which is beneficial to Increase the speed of area expansion.
  • performing the outreach detection on each of the second pixel points in parallel to obtain the detection result includes: obtaining a second reference area surrounding the second pixel point, and the second reference area contains at least one first pixel points; for the second pixel point and each first pixel point in the second reference area, respectively acquire the physical distance from each first pixel point to the second pixel point; and obtain the detection result based on the physical distance. Therefore, a second reference area surrounding the second pixel is obtained, and the second reference area contains at least one first pixel, and based on the physical distance from the first pixel to the second pixel in the second reference area, the detected As a result, it is possible to reduce the possibility of the area expanding beyond the safe distance, which is beneficial to improve the safety of the area expanding.
  • obtaining the detection result based on the physical distance includes: when the minimum physical distance is lower than a preset threshold, determining the detection result includes using the second pixel as a new first pixel; at the minimum physical distance If it is not lower than the preset threshold, determining the detection result includes not using the second pixel as a new first pixel. Therefore, when the minimum physical distance is lower than the preset threshold, determining the detection result includes taking the second pixel as the new first pixel, and when the minimum physical distance is not lower than the preset threshold, determining the detection result Including not using the second pixel as the new first pixel, it can further ensure that the area expansion does not exceed a safe distance by constraining the minimum physical distance, and improve the safety of the area expansion.
  • the method further includes: when the detection result includes the second pixel as the new first pixel, using the third pixel that meets the preset condition as the new second pixel, and re-executing the The step of performing out-expansion detection on each second pixel in parallel to obtain a detection result; wherein, the preset condition includes: the first reference area where the third pixel is located contains the first pixel updated by the second pixel.
  • the third pixel that satisfies the preset condition as a new second pixel, and re-execute the step of performing the expansion detection on each second pixel in parallel to obtain the detection result, and the preset condition includes: the third pixel
  • the first reference area where the point is located contains the first pixel point updated by the second pixel point, that is, in the process of area expansion, the second pixel point can be updated to the first pixel point, and the third pixel point will also be updated according to Satisfy the preset condition and use it as a new second pixel point, and re-perform the expansion detection on each second pixel point, so that the area expansion can be carried out in a reciprocating manner, which is beneficial to further improve the accuracy of the area expansion.
  • obtaining the extended area of the target object includes: in response to detecting that each second pixel point has performed an extended detection, obtaining the first pixel point in the original area and the first pixel point in the original area by The second pixel is updated to obtain the connected domain formed by the first pixel, and the connected domain is used as an extended area.
  • the connected domain formed by the first pixel point in the original area and the first pixel point updated by the second pixel point is obtained, and
  • the connected domain is used as the expansion area, that is, the expansion of the area ends with the expansion detection of each second pixel, and the connected domain formed by all the first pixels is used as the expansion area, which is conducive to improving the expansion. area accuracy.
  • the image to be tested is a medical image
  • the target object is a lesion
  • the medical image also includes several target tissues
  • the method further includes: detecting the infringement data of each first pixel point on several target tissues; wherein, the infringement The data includes: the target organization violated by the first pixel. Therefore, the image to be tested is a medical image, and the target object is a lesion.
  • the medical image also includes several target tissues. Including the target tissue violated by the first pixel, that is, the infringement data of each first pixel against the target tissue can be recorded, so that reference information can be provided during the application process, which is conducive to improving user experience.
  • the image to be tested includes a plurality of target objects; the method further includes: displaying an object list; wherein the object list includes identifiers of a plurality of target objects; Instructions, for the target object corresponding to the identifier, perform the step of performing the expansion detection on each of the second pixel points in parallel to obtain the detection result and the subsequent steps to obtain the expansion area.
  • a plurality of target objects are identified in the image to be tested.
  • an object list is displayed, and the object list includes indicators of a plurality of target objects.
  • execute the expansion detection for each second pixel point in parallel obtain the detection result and the subsequent steps, and obtain the expansion area, so it is possible to have multiple target objects in the image to be tested
  • regional expansion is performed according to user instructions, which is conducive to improving user experience.
  • the method further includes: obtaining the surface mesh of the target object by triangulation based on the expanded area; The surface grid of the object is rendered to obtain the image model of the target object; the image model of the target object is displayed in the image display interface.
  • the surface mesh of the target object is obtained based on the triangulation of the extended area, and the rendering parameters of the target object are used to render the surface mesh of the target object to obtain the image model of the target object.
  • the image model of the target object is displayed on the display interface, so it can be beneficial to intuitively display the three-dimensional information of the target object and improve user experience.
  • the embodiment of the present application also provides an image processing device, including: an original area acquisition module, a pixel expansion detection module, and an expansion area acquisition module, and the original area acquisition module is configured to acquire the original area where the target object in the image to be tested is located , wherein, the original area contains a number of first pixels, and there are a number of second pixels outside the original area; the pixel expansion detection module is configured to perform an expansion detection on each second pixel in parallel to obtain a detection result, wherein, the detection The result includes whether to use the second pixel point as the new first pixel point; the extended area obtaining module is configured to obtain the extended area of the target object based on the original area and the detection result.
  • the pixel extension detection module is configured to perform the extension detection on each of the second pixel points in parallel in a manner that each calculation kernel runs in parallel. Therefore, each computing core runs in parallel the extension detection performed on each second pixel point, which can further improve the calculation efficiency of region extension.
  • the first reference areas where the second pixel points are respectively located overlap with the original area. Therefore, for each second pixel point, the first reference area where it is located intersects with the original one, so before the extension detection, the pixels located outside the original area and farther away from the original area can be excluded, which is beneficial to Increase the speed of area expansion.
  • the pixel extension detection module includes a reference area acquisition submodule configured to acquire a second reference area surrounding the second pixel point; the pixel extension detection module includes a physical distance calculation submodule configured for the second reference The second pixel point and each first pixel point in the area respectively obtain the physical distance from each first pixel point to the second pixel point; the pixel expansion detection module includes a detection result acquisition sub-module configured to obtain a detection result based on the physical distance result. Therefore, obtaining the second reference area surrounding the second pixel, and obtaining the detection result based on the physical distance from the first pixel to the second pixel in the second reference area, can reduce the possibility of the area expanding beyond the safety distance, It is conducive to improving the security of regional expansion.
  • the detection result acquisition submodule includes a first determination unit configured to determine the detection result when the minimum physical distance is lower than a preset threshold, including taking the second pixel as a new first pixel; detecting The result acquisition sub-module includes a second determination unit configured to determine that the detection result includes not using the second pixel as a new first pixel when the minimum physical distance is not lower than a preset threshold.
  • determining the detection result includes taking the second pixel as the new first pixel, and when the minimum physical distance is not lower than the preset threshold, determining the detection result Including not using the second pixel as the new first pixel, it can further ensure that the area expansion does not exceed a safe distance by constraining the minimum physical distance, and improve the safety of the area expansion.
  • the image processing device also includes a duplication detection module configured to Including the case where the second pixel is used as the new first pixel, the third pixel that meets the preset condition is used as the new second pixel, and re-performs the extension detection for each second pixel in parallel, The step of obtaining the detection result; wherein, the preset condition includes: the first reference area where the third pixel is located contains the first pixel updated by the second pixel.
  • the third pixel that satisfies the preset condition as a new second pixel, and re-execute the step of performing the expansion detection on each second pixel in parallel to obtain the detection result, and the preset condition includes: the third pixel
  • the first reference area where the point is located contains the first pixel point updated by the second pixel point, that is, in the process of area expansion, the second pixel point can be updated to the first pixel point, and the third pixel point will also be updated according to Satisfy the preset condition and use it as a new second pixel point, and re-perform the expansion detection on each second pixel point, so that the area expansion can be carried out in a reciprocating manner, which is beneficial to further improve the accuracy of the area expansion.
  • the extended area acquisition module is specifically configured to acquire the first pixel points updated by the first pixel points in the original area and the second pixel points in the original area in response to detecting that each second pixel point has performed the extended detection.
  • the connected domain formed by the pixels, and the connected domain is used as the external expansion area. Therefore, when it is detected that each second pixel point has performed the extension detection, the connected domain formed by the first pixel point in the original area and the first pixel point updated by the second pixel point is obtained, and
  • the connected domain is used as the expansion area, that is, the expansion of the area ends with the expansion detection of each second pixel, and the connected domain formed by all the first pixels is used as the expansion area, which is conducive to improving the expansion. area accuracy.
  • the image to be tested is a medical image
  • the target object is a lesion
  • the medical image also includes several target tissues
  • the image processing device further includes an infringement detection module configured to detect the impact of each first pixel on several target tissues.
  • the violation data includes: the target organization violated by the first pixel. Therefore, the image to be tested is a medical image, and the target object is a lesion.
  • the medical image also includes several target tissues. Including the target tissue violated by the first pixel, that is, the infringement data of each first pixel on the target tissue can be recorded, so that reference information can be provided during the application process, which is conducive to improving user experience.
  • the image processing device also includes a list display module configured to display a list of objects; wherein, the object list includes identifiers of multiple target objects; the image processing device also includes The external expansion interaction module is configured to respond to the identifier being in the selected state and the external expansion instruction input by the user, in combination with the pixel external expansion detection module and the external expansion area acquisition module, for the target object corresponding to the identifier, to perform an operation on each second pixel point Executing the expansion detection in parallel, the step of obtaining the detection result and the subsequent steps to obtain the expansion area. Therefore, a plurality of target objects are identified in the image to be tested.
  • an object list is displayed, and the object list includes identifiers of a plurality of target objects.
  • the object list includes identifiers of a plurality of target objects.
  • execute the expansion detection for each second pixel point in parallel obtain the detection result and the subsequent steps, and obtain the expansion area, so it is possible to have multiple target objects in the image to be tested
  • regional expansion is performed according to user instructions, which is conducive to improving user experience.
  • the image processing device includes a triangulation module configured to triangulate the surface mesh of the target object based on the extended area; the image processing device includes a model rendering module configured to render the target object using the rendering parameters of the target object The surface grid is rendered to obtain the image model of the target object; the image processing device includes a model display module configured to display the image model of the target object on the image display interface.
  • the surface mesh of the target object is obtained based on the triangulation of the extended area, and the rendering parameters of the target object are used to render the surface mesh of the target object to obtain the image model of the target object.
  • the image model of the target object is displayed on the display interface, so it can be beneficial to intuitively display the three-dimensional information of the target object and improve user experience.
  • An embodiment of the present application also provides an electronic device, including a memory and a processor coupled to each other, and the processor is configured to execute program instructions stored in the memory to implement any one of the above image processing methods.
  • the aforementioned electronic device is a terminal device or a server.
  • the embodiment of the present application also provides a computer-readable storage medium, on which program instructions are stored, and when the program instructions are executed by a processor, any one of the above-mentioned image processing methods is realized.
  • the embodiment of the present application also provides a computer program, including computer readable code, when the computer readable code is run in the electronic device, the processor in the electronic device executes any one of the above image processing method.
  • the above scheme obtains the original area where the target object is located in the image to be tested, and the original area contains a number of first pixels, and there are a number of second pixels outside the original area.
  • each second pixel is executed in parallel. Expand the detection to obtain the detection result, and the detection result includes whether to use the second pixel as the new first pixel, so that based on the original area and the detection result, the extended area of the target object is obtained.
  • the external expansion detection is based on each It is executed on the second pixel, so it can realize pixel-level area expansion, which is beneficial to improve the accuracy of area expansion.
  • the expansion detection is executed in parallel, it is beneficial to improve the speed of area expansion. Therefore, the accuracy and speed of area expansion can be improved.
  • FIG. 1 is a schematic flow diagram of an image processing method provided in an embodiment of the present application
  • Fig. 2 is a schematic diagram of the area expansion provided by the embodiment of the present application.
  • Fig. 3 is a schematic diagram of the image display interface provided by the embodiment of the present application.
  • Fig. 4 is another schematic diagram of the image display interface provided by the embodiment of the present application.
  • Fig. 5 is another schematic diagram of the image display interface provided by the embodiment of the present application.
  • Fig. 6 is a schematic frame diagram of an image processing device provided by an embodiment of the present application.
  • Fig. 7 is a schematic frame diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 8 is a schematic diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • system and “network” are often used interchangeably herein.
  • the term “and/or” in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations.
  • at least one herein means any one of a variety or any combination of at least two of the more, for example, including at least one of A, B, and C, which may mean including from A, Any one or more elements selected from the set formed by B and C.
  • the character "/" in this article generally indicates that the contextual objects are an "or” relationship.
  • "many” herein means two or more than two.
  • the execution subject of the image processing method may be an electronic device, for example, the electronic device may be a terminal device, a server or other processing device, wherein the terminal device may be a user equipment (User Equipment, UE), a mobile device, User terminals, terminals, cellular phones, cordless phones, personal digital assistants (Personal Digital Assistant, PDA), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc.
  • the image processing method may be implemented by a processor invoking computer-readable instructions stored in a memory.
  • FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of the present application.
  • the process flow of the image processing method may include the following steps:
  • Step S11 Obtain the original area where the target object is located in the image to be tested.
  • the image to be tested and the target object can be set according to actual applications.
  • the image to be tested may include medical images such as computed tomography (CT), magnetic resonance (Magnetic Resonance, MR), etc.
  • the target object may include lesions such as tumors, cysts, and abscesses; or
  • the images to be tested may include surveillance images, and target objects may include pedestrians, vehicles, and the like.
  • CT computed tomography
  • MR magnetic resonance
  • target object may include lesions such as tumors, cysts, and abscesses
  • the images to be tested may include surveillance images, and target objects may include pedestrians, vehicles, and the like.
  • Other situations can be deduced by analogy, and no more examples will be given here.
  • an object recognition network in order to improve the recognition efficiency, can be pre-trained, so that the object recognition network can be used to recognize the image to be tested and obtain the original area where the target object is located.
  • the object recognition network may include but not limited to: Region-Convolutional Neural Networks (R-CNN), Fully Convolutional Network (Fully Convolutional Network, FCN), etc., which are not limited here.
  • sample images containing target objects can be collected in advance, and the sample images are marked with the sample category to which each sample pixel belongs (for example, a certain pixel is marked as belonging to the target object), and then the object recognition network can be used to Recognize the sample image to obtain the predicted category to which each pixel in the sample image belongs. Finally, the difference between the sample category and the predicted category can be used to adjust the network parameters of the object recognition network so that the object recognition network can learn during the training process. to the image features of the target object.
  • the image to be tested can be identified by using the trained and converged object recognition network to obtain the pixel category to which each pixel in the image to be tested belongs, and the connected domain formed by the pixels belonging to the target object can be used as the original area where the target object is located .
  • the object recognition network for identifying lesions and the object recognition network for identifying pedestrians and vehicles can be obtained by analogy training, which will not be repeated here. example.
  • the image to be tested may not be limited to a two-dimensional image or a three-dimensional image.
  • the image to be tested may include but not limited to two-dimensional images such as surveillance images; while in a medical scene, the image to be tested may include but not limited to three-dimensional images such as CT, MR, etc., that is, in this case , the image to be tested is substantially volume data, and the "first pixel", "second pixel", and "third pixel" described in the embodiments of the present application may represent voxels of the volume data.
  • the original area contains several first pixels, that is, the pixels contained in the original area can be directly used as the first pixels.
  • each first pixel point may be assigned a first identifier respectively, and the first identifiers of each first pixel point in the original area are different. For example, natural numbers such as 0, 1, 2, and 3 may be respectively assigned to each first pixel point as a first identifier of each first pixel point.
  • the pixels outside the original area can be directly used as the second pixels; or, in order to increase the speed of area expansion, the first reference area where each second pixel is located has an intersection with the original area, that is, for each As far as a second pixel point is concerned, the first reference area where it is located has an intersection with the original area.
  • the center of the first reference area where the second pixel is located may be the second pixel, that is, for each second pixel, a neighborhood (such as a rectangle) may be determined centered on itself. area, circular area, etc.), as the first reference area where it is located. That is to say, if the neighborhood of a certain pixel outside the original area intersects with the original area, it means that there is a first pixel in the neighborhood, and this pixel can be used as the second pixel.
  • the size of the first reference area may be set according to actual conditions.
  • the size of the first reference area can be set to be slightly smaller, for example, in the case of a two-dimensional image to be tested, it can be set to 3*3, and In the case that the image to be tested is a 3D image, it can be set to 3*3*3; or, in the case of relatively loose requirements on the accuracy of area expansion, the size of the first reference area can be set slightly larger, such as When the image to be tested is a two-dimensional image, it can be set to 5*5, and when the image to be tested is a three-dimensional image, it can be set to 5*5*5. Other situations can be deduced by analogy, and no more examples will be given here.
  • each second pixel in order to distinguish from the first pixel, each second pixel may be assigned a second identifier, and the second identifier is different from the first identifier.
  • -1 or -2, -3, etc.
  • each second pixel may be assigned to each second pixel as the second identifier of the second pixel.
  • Step S12 Execute out-expansion detection on each second pixel point in parallel to obtain a detection result.
  • the detection result includes whether the second pixel is used as the new first pixel, for example, the detection result includes the second pixel as the new first pixel, or the detection result includes not using the second pixel as the new first pixel. It should be noted that if the detection result includes the second pixel as the new first pixel, it means that the second pixel can be used as the new first pixel. On the contrary, if the detection result includes not using the second pixel as the new first pixel, it means that the second pixel is maintained as the second pixel.
  • the extension detection performed on each second pixel point may be executed by each computing core in parallel.
  • the computing core may be each core of a graphics processing unit (Graphics Processing Unit, GPU).
  • parallel acceleration can be performed based on Compute Unified Device Architecture (CUDA), and you can refer to CUDA related technical details. The above method can further improve the calculation efficiency of the region expansion.
  • CUDA Compute Unified Device Architecture
  • a second reference area surrounding the second pixel point may be acquired, and for the second pixel point in the second reference area and each second pixel point For one pixel, the physical distance from each first pixel to the second pixel can be obtained respectively, and a detection result can be obtained based on the physical distance. That is to say, when performing extension detection on each second pixel point, it is necessary to obtain a second reference area surrounding the second pixel point, and the second pixel point in the second reference area and each first pixel point For the pixels, the physical distances from each first pixel to the second pixel are obtained respectively.
  • the above method can reduce the possibility of area expansion beyond the safe distance, and is conducive to improving the safety of area expansion.
  • the center of the second reference area surrounding the second pixel point may be the second pixel point, that is, the second reference area may be set as a neighborhood of the second pixel point.
  • the size of the second reference area and the first reference area may be set to be the same.
  • the sizes of the first reference area and the second reference area can both be set to 3*3; or, when the image to be tested is a three-dimensional image, the first reference area and the size of the second reference area can both be set to 3*3*3.
  • the pixel distance from the first pixel point to the second pixel point in the second reference area can be obtained first, and then based on the conversion unit between the image pixel distance and the actual pixel distance (that is, how much physical distance is equal to a pixel distance ), convert the calculated pixel distance into physical distance.
  • the physical distance where one pixel distance is equal to 5 mm, or the physical distance where one pixel distance is equal to 1 mm is not limited here.
  • a location identifier can be assigned to each pixel in the image to be tested in advance, and the location identifiers of each pixel are different. On this basis, according to the difference between the location identifiers, Calculate the pixel distance.
  • the pixel at position (0,0) can be assigned to position identifier 0
  • the pixel at position (0,1) can be assigned to position identifier 1
  • the pixel at position (0,1 can be assigned to position identifier 1
  • the pixel at position (0,1) is assigned to position identifier 1
  • the pixel at position (0,1) is assigned to the position identifier 1
  • the pixel at position (0,1) is assigned to the position identifier 1
  • the pixel at the j) position is assigned to the position identifier j
  • the pixel at the (i, j) position is assigned to the position identifier i+j, and so on, and examples are not given here.
  • the pixel distance between the two is calculated based on the pixel position (i1, j1) of the first pixel point and the pixel position (i2, j2) of the second pixel point.
  • Other situations can be deduced by analogy, and no more examples will be given here.
  • the preset threshold can be set according to the safety distance of the area expansion, for example, the safety distance can be directly set as the preset threshold, or, if a certain degree of error range is acceptable, the safety distance can also be set to The sum (or difference) of the distance and the preset value is set as the preset threshold, which is not limited here.
  • the above method can further ensure that the expansion of the area does not exceed a safe distance by constraining the minimum physical distance, and improve the security of the expansion of the area.
  • FIG. 2 is a schematic diagram of the area expansion provided by the embodiment of the present application.
  • the squares represent each pixel in the image to be tested 201, wherein the hatched squares with diagonal lines represent the original area The first pixel in 202.
  • the pixel points outside the original area as shown in the dotted shadow filled square
  • this pixel can be used as the second pixel.
  • Fig. 2 only shows one of the second pixels by way of example.
  • each second pixel outside the original area can be determined according to the above-mentioned related descriptions. Two pixels. Based on this, for each second pixel point, the second reference area surrounding the second pixel point can be obtained. As mentioned above, in order to ensure the consistency of the area expansion process, the second reference area can have the same The size, that is, the second reference area may be the bold dashed box shown in the figure.
  • the second reference area contains at least one first pixel point, on this basis, for the second pixel point in the second reference area (that is, the dotted shaded grid in the figure) and each first pixel point (that is, In the figure, the slanted line shades fill the squares), the physical distance from each first pixel point to the second pixel point can be calculated (the calculation process can refer to the above-mentioned related description), and when the minimum physical distance is less than the preset threshold value, the The second pixel is used as the new first pixel, and in the case that the minimum physical distance is not less than the preset threshold, the second pixel is not used as the new first pixel.
  • the other second pixels can be deduced by analogy, and finally the connected domain formed by the first pixel in the original area and the first pixel updated by the second pixel can be used as the extended area 203 .
  • Figure 2 and the above text part illustrate the specific process of area expansion from a two-dimensional perspective.
  • the image to be tested is volume data, it can be deduced by analogy, and no more examples are given here. .
  • the detection result includes the second pixel as the new first pixel
  • the third pixel that meets the preset condition is used as the new second pixel
  • the above-mentioned parallel execution for each second pixel is re-executed
  • Outward expansion detection is a step of obtaining a detection result
  • the preset condition includes: the first reference area where the third pixel point is located includes the first pixel point updated by the second pixel point.
  • the third pixel point will also be used as the new second pixel point according to the preset condition, and each second pixel point will be reset
  • the pixel points perform the expansion detection, so that the area expansion can be carried out in such a reciprocating manner, which is conducive to further improving the accuracy of the area expansion.
  • a third identifier can also be assigned to each third pixel, and the third identifier is the same as the first identifier and the second identifier different. For example, when a natural number is assigned to each first pixel as the first identifier of the first pixel, and -1 is assigned to each second pixel as the second identifier of the second pixel, -2 can be assigned (or -3, -4, etc.) Assign each third pixel point as a third identifier of the third pixel point.
  • the first reference area where the second pixel is located may be centered on the second pixel.
  • the first reference area where the third pixel is located may also be centered on the third The pixel is the center, which can improve the consistency of the region expansion process.
  • the image to be tested and the target object can be set according to the actual application.
  • the object to be tested can be a medical image
  • the target object can be a lesion.
  • the above method can record the violation data of each first pixel point against the target tissue, so that reference information can be provided during the application process, which is beneficial to improve user experience.
  • the first pixel includes the first pixel in the original area and the first pixel updated by the second pixel. For example, when the first pixel is located within the tissue area of the target tissue, it can be considered that the first pixel violates the target tissue; otherwise, if the first pixel is located outside the tissue area of the target tissue, it can be considered that the first pixel does not The subject organization is not infringed.
  • the target tissue may be set according to the medical tissue where the lesion is located.
  • the target tissue may include, but not limited to, gallbladder, spleen, pancreas, etc.
  • Other situations can be deduced by analogy, and no more examples will be given here.
  • Step S13 Obtain the extended area of the target object based on the original area and the detection result.
  • the connected domain formed by the first pixel point in the original area and the first pixel point updated by the second pixel point may be obtained, and The connected domain is used as the extension area.
  • the first pixel is assigned a first identifier whose value is a natural number
  • the second pixel is assigned a second identifier whose value is a negative number
  • the third pixel is assigned a third identifier whose value is a negative number.
  • the connected domain formed by all the pixels corresponding to the identifier whose value is a natural number can be used as the extended area.
  • the area expansion ends when all the second pixels have performed the expansion detection, and finally the connected domain formed by all the first pixels is used as the expanded area, which is beneficial to improve the accuracy of the expanded area.
  • the surface mesh of the target object after obtaining the extended area, can be obtained by triangulation based on the extended area, and the surface mesh (mesh) can be rendered using the rendering parameters of the target object to obtain the target object's surface mesh. an image model, and display the image model of the target object in the image display interface.
  • the above-mentioned method can help to intuitively display the three-dimensional information of the target object, and is beneficial to improve user experience.
  • the scatter points on the surface of the organization area can be used to form the vertices of the triangles, the line segments connecting the vertices form the sides of the triangles, and each triangle corresponds to a face, and complex objects can be simulated through triangulation
  • triangulation For the specific process of triangulation, such as human body, vehicle, building, etc., please refer to the technical details of triangulation.
  • the dyeing parameters may include but not limited to: color, transparency, material, etc., which are not limited here.
  • the rendering parameters of the lesion may be set as: yellow, 10% transparency, and rough surface material.
  • FIG. 3 is a schematic diagram of the image display interface provided by the embodiment of the present application.
  • the image of the liver region includes the hepatic vein 301, the hepatic artery 302, and the hepatic portal vein 303 and the first lesion area 304;
  • the lesion area shown in Figure 3 is an area that has not been processed by area expansion; after performing area expansion processing on the lesion area shown in Figure 3 according to the image processing method of the embodiment of the present application, it can be The second lesion area 401 shown in FIG. 4 is obtained. It should be noted that what is shown in FIG. 3 and FIG. 4 is only a situation that may exist in the application process, and does not limit the actual effect of area expansion in other scenarios.
  • an object list may be displayed, and the object list includes identifiers of multiple target objects, so that the identifier may be selected in response to the user's
  • the input expansion command executes the expansion detection on each second pixel in parallel for the target object corresponding to the identifier, and obtains the detection result and subsequent steps to obtain the expansion area.
  • the area can be expanded according to the user's instruction, which is beneficial to improve user experience.
  • the identifier may include, but is not limited to: the name, code, serial number, etc. of the target object, which is not limited here.
  • the identifiers of these three liver cysts can be "liver cyst 1", “liver cyst 2", " Liver cyst 3". Other situations can be deduced by analogy, and no more examples will be given here.
  • the image model of the target object corresponding to the identifier in response to the identifier being in a selected state, can be highlighted in a preset manner on the image display interface.
  • the preset methods may include but are not limited to: highlighting, thickening edges, etc., which are not limited here.
  • the manner of obtaining the image model reference may be made to the foregoing related descriptions.
  • the original area where the target object in the image to be tested is located can be obtained, and the original area contains several first pixel points, and there are several second pixel points outside the original area. Execute the expansion detection of two pixels in parallel to obtain the detection result, and the detection result includes whether to use the second pixel as the new first pixel, so as to obtain the expansion area of the target object based on the original area and the detection result.
  • the expansion detection is performed based on each second pixel, so it can realize pixel-level area expansion, which is beneficial to improve the accuracy of area expansion.
  • the expansion detection is performed in parallel, it is beneficial to improve the area. The speed of expansion. Therefore, the accuracy and speed of area expansion can be improved.
  • the image to be tested and the target object can be set according to actual applications.
  • the image to be tested may be a medical image
  • the target object may be a lesion.
  • the image to be tested may include several medical tissues, and the several medical tissues include the lesion.
  • the image display interface may also display an organization list, and the organization list displays identifiers of corresponding medical organizations in the image space.
  • the image model of the medical tissue corresponding to the identifier can be displayed on the image display interface according to the display strategy matching the selection state, and the selection state includes the first state representing being selected and the state representing not being selected.
  • the display strategy matching the first state is different from the display strategy matching the second state.
  • the above solution can display medical tissues in different display strategies on the image display interface according to whether the medical tissues are in the selected state or not selected state, that is, it can support the user to independently select the display strategy of the medical tissues, so that the images can be
  • the display interface displays and distinguishes various medical tissues, which is conducive to intuitively and accurately reflecting the relative positional relationship between the medical tissues.
  • the identifier may include but not limited to: the name, code, serial number, etc. of the medical organization, which are not limited here.
  • FIG. 5 is another schematic diagram of the image display interface provided by the embodiment of the present application.
  • the tissue list 501 may display identifiers of various medical tissues in the abdomen: "hepatic vein”, “hepatic portal vein”, “inferior vena cava”, “abdominal artery”, “biliary duct”, “left liver”, “Right liver” and the watershed segmentation of the liver, etc.
  • the medical image is a scanned image of other parts, it can be deduced by analogy, and no more examples will be given here.
  • check box in front of the identifier When the check box in front of the identifier is checked, it can indicate that the medical organization corresponding to the identifier is in the first state of being selected, and check in front of the identifier If the box is not checked, it may indicate that the medical organization corresponding to the identifier is in the second state of being unselected.
  • the display strategy matching the first state may include but not limited to: display, etc.
  • the display strategy matching the second state may include but not limited to: hiding, etc.; or, the display strategy matching the first state may include but It is not limited to: displaying in a highlighted manner, etc., and the display strategy matching the second state may include but not limited to: displaying in a normal display manner, for details, please refer to the following related descriptions.
  • the image display interface includes at least one of a first display area 502 and a second display area 503, the first display area 502 is used to display an image model of medical tissue, and the second display area 503 is used to display several 2D image at preset orientation.
  • several preset orientations may specifically include but not limited to: transverse, coronal, sagittal, etc., which are not limited here; in addition, the two-dimensional image may specifically be a multi-planar reconstruction map (Multi-Planner Reformation, MPR ).
  • the multi-planar reconstruction image is to obtain two-dimensional images of human tissues and organs in any orientation (such as the aforementioned transverse, coronal, sagittal, and oblique) from the original transverse axial image after post-processing.
  • any orientation such as the aforementioned transverse, coronal, sagittal, and oblique
  • MPR-related technical details please refer to MPR-related technical details.
  • the first display area 502 can display the image model of the medical tissue
  • the second display area 503 can respectively display the transverse multi-planar reconstruction 504.
  • the display interface displays medical tissues in different dimensions at the same time, which is conducive to improving the richness of image information displayed on the image display interface.
  • the image display interface includes a first display area 502, and when the selected state of the identifier is the first state, the image model of the medical tissue corresponding to the identifier can be displayed, and in the selected state of the identifier In the case of the second state, the image model of the medical tissue corresponding to the identifier may be hidden.
  • the image model of the medical tissue corresponding to the identifier may be further displayed in a preset manner.
  • the preset methods may include, but are not limited to: thickening of edges, highlighting, and the like.
  • the above method can support user-defined selection of the medical tissue that needs to be highlighted in the first display area 502, which is beneficial to support the user to focus on observing the highlighted medical tissue, and by hiding the medical tissue in the second state, it is possible for the user to focus on observing the highlighted medical tissue.
  • the medical organization excludes the interference of other medical organizations, which is conducive to improving the user experience.
  • the image display interface includes a second display area 503, and when the selection state of the identifier is the first state, the medical tissue corresponding to the identifier in the two-dimensional image can be displayed in a highlighted manner, and in the When the selection state of the identifier is the second state, the medical tissue corresponding to the identifier in the two-dimensional image may be displayed in a conventional display manner.
  • the highlighting method may include but not limited to: thicken the edge, highlight, etc.
  • the normal display method may include the original display method of the multi-plane reconstruction map, such as: the default grayscale image of the multi-plane reconstruction map, which is not mentioned here. Do limited.
  • the medical tissue can be displayed in a highlighted display mode or a normal display mode in the second display area 503 according to whether the medical tissue is selected by the user, that is, it can support user-defined selection of the medical tissue that needs to be highlighted in the second display area 503, It is beneficial to support the user to focus on observing the prominent medical tissue, and by displaying the medical tissue in the second state in a conventional display manner, the interference of other medical tissues can be excluded when the user focuses on the prominent medical tissue, which is beneficial to improving user experience.
  • the image display interface includes a first display area 502 and a second display area 503, and when the selection state of the identifier is the first state, the first display area 502 may display the medical information corresponding to the identifier.
  • tissue image model and display the medical tissue corresponding to the identifier in the two-dimensional image in a highlighted manner in the second display area 503;
  • the image model of the medical tissue corresponding to the identifier is hidden, and the medical tissue corresponding to the identifier in the two-dimensional image is displayed in a conventional display manner in the second display area 503 .
  • the above method can not only display medical tissues in different dimensions on the image display interface at the same time, which is conducive to improving the richness of image information displayed on the image display interface, but also can display user It is expected that the prominent medical tissue will allow users to intuitively connect the corresponding medical tissue in two different angles, three-dimensional and two-dimensional, to improve user experience.
  • the organization list may include identifiers of several medical organizations, and the several medical organizations may include lesions.
  • the user can check the identifier of the medical tissue "focus” and the identifiers of other medical tissues of interest, so that the medical tissue "focus” and other medical tissues can be displayed in the first display area 502 of the image display interface , and hide the image models of medical tissues corresponding to the unchecked identifiers in the first display area 502. Organize "focuses" and other medical tissues, and display medical tissues corresponding to unchecked identifiers in a conventional display manner on the multi-planar reconstruction map in the second display area 503 .
  • the user can conveniently and intuitively understand the relative positional relationship between the medical tissue "lesion” and other medical tissues of interest. Other situations can be deduced by analogy, and no more examples will be given here.
  • the image to be tested and the target object can be set according to actual applications.
  • the image to be tested can be a medical image
  • the target object can be a lesion, but in a real scene, multiple medical images are often scanned.
  • multiple medical images including but not limited to portal venous images, arterial images, etc. can be obtained, and other cases can be deduced by analogy, which will not be exemplified here.
  • the plurality of medical images may include a first image and at least one second image.
  • first and “second” can be used to distinguish medical images in terms of nomenclature, and do not mean the order of scanning or the degree of importance.
  • different medical images may have different emphases on whether the display of each medical tissue is clear or not.
  • images in the portal venous phase can clearly display the lesion, hepatic portal vein and hepatic vein, but the hepatic artery is not obvious, while the image in the arterial phase The image can clearly show the hepatic artery, but the lesion, hepatic portal vein and hepatic vein are not obvious.
  • the image space of the first image can be regarded as the coordinate space where the first image is located, and the dimension of the image space can be specifically determined according to the dimension of the medical image.
  • the medical image is a three-dimensional volume data
  • the first image can be regarded as a volume data shaped as a cuboid.
  • one of the vertices of the cuboid can be used as the origin of the coordinate space, and based on the edge where the vertex is located , to establish the coordinate axes of the coordinate space, thereby establishing the image space for obtaining the first image.
  • a first region recognition network and a second region recognition network can be pre-trained, on this basis, the first region recognition network can be used to recognize the first image, and the first The first tissue area of the medical tissue is identified, and the second image is identified by using the second area identification network to obtain the second tissue area of the second medical tissue.
  • the first area recognition network may include but not limited to: R-CNN, FCN, etc., which is not limited here.
  • the second area recognition network may include but not limited to: R-CNN, FCN, etc., which is not limited here.
  • sample images of portal phase images can be collected in advance, and the sample images are marked with the samples to which each pixel belongs category (for example, a certain pixel is marked as belonging to the hepatic portal vein, another pixel is marked as belonging to the hepatic vein, and another pixel is marked as belonging to the lesion), and then the sample image is identified by using the first region recognition network, The predicted category of each pixel in the sample image is obtained, and finally the difference between the sample category and the predicted category can be used to adjust the network parameters of the first region recognition network, so that the first region recognition network learns the liver respectively during the training process.
  • category for example, a certain pixel is marked as belonging to the hepatic portal vein, another pixel is marked as belonging to the hepatic vein, and another pixel is marked as belonging to the lesion
  • the first image can be identified by using the first region recognition network that has been trained and converged to obtain the pixel category to which each pixel in the first image belongs, and the connected domain formed by the pixels belonging to the hepatic portal vein can be used as the hepatic portal vein.
  • the connected domain formed by the pixel points belonging to the hepatic vein is used as the first tissue area of the hepatic vein
  • the connected domain formed by the pixel points belonging to the lesion is used as the first tissue area of the lesion.
  • Other situations can be deduced by analogy, and no more examples will be given here.
  • a sample image of the arterial phase image can be collected in advance, and the sample image is marked with the sample category to which each pixel belongs ( For example, a certain pixel is marked as belonging to the hepatic artery), and then the second area recognition network is used to identify the sample image to obtain the predicted category to which each pixel in the sample image belongs, and finally the relationship between the sample category and the predicted category can be used
  • the difference is to adjust the network parameters of the second region recognition network, so that the second region recognition network can learn the image features of the hepatic artery during the training process.
  • the second image can be identified by using the second region recognition network that has converged in training to obtain the pixel category to which each pixel in the second image belongs, and the connected domain formed by the pixels belonging to the hepatic artery can be used as the hepatic artery.
  • Second organizational area Other situations can be deduced by analogy, and no more examples will be given here.
  • the second tissue region may be projected into the image space based on the registration parameters between the first image and the second image.
  • the above method can improve the accuracy of the projection, thereby being beneficial to improve the accuracy of the relative positional relationship between the medical tissues visually displayed on the image display interface.
  • the first target area of the target object in the first image may be identified, and the second target area of the target object in at least one second image may be identified respectively, and for each second image, the second target area and the The first target regions are aligned to obtain registration parameters between the second image and the first image.
  • the target object includes the liver and the first image is the portal phase image
  • the second image is the arterial phase image
  • the first target area of the liver in the portal phase image can be identified
  • the second target area of the liver in the arterial phase image can be identified region
  • registration parameters can align the second target area of the target object in the second image with the first target area in the first image, which is beneficial to improve the accuracy of the registration parameters.
  • the second target area needs to undergo rigid body transformations such as rotation and offset and non-rigid body transformations such as deformation to be aligned with the first target area
  • the above registration parameters may specifically include a rigid body registration
  • the rigid body registration matrix can be used to project the second tissue region into the image space, and then the offset field can be used to deform the second tissue region in the image space; or
  • the second target area can be aligned with the second target area only through rigid body transformations such as rotation and offset, and the above registration parameters can specifically include a rigid body registration matrix.
  • you can The second tissue region is projected into image space directly using the rigid body registration matrix.
  • the liver can be displayed on the image display interface.
  • the portal vein, hepatic vein, hepatic artery, and lesion are simultaneously displayed, so that doctors can intuitively understand the relative positional relationship between the lesion and the hepatic portal vein, hepatic vein, and hepatic artery.
  • the image to be tested and the target object may be set according to actual applications.
  • the image to be tested may be a medical image
  • the target object may be a lesion on a target organ such as liver or lung
  • the medical tissue in the image to be tested may include a lesion.
  • the target blood vessels of the target organ can be identified, and based on the target blood vessels of the target organ, the target organ can be divided into several watershed segments by using the watershed algorithm. Therefore, the medical tissues may further include the above-mentioned watershed segments, that is, some medical tissues in the medical image are lesions, and some medical tissues are watershed segments of target organs.
  • the medical image in addition to the two medical tissues of the lesion and the watershed segment, it does not exclude that the medical image also includes other types of medical tissues, such as other organs, which are not limited here.
  • the three-dimensional model of the medical tissue can be displayed based on the rendering parameters of the medical tissue, and the rendering parameters of different medical tissues are not completely the same.
  • the acquisition process of the 3D model please refer to the relevant description in the foregoing application embodiments.
  • the target organ is divided into several watershed segments by using the watershed algorithm, and based on the rendering parameters of the medical tissue, the three-dimensional model of the medical tissue is displayed, and the medical tissue includes the watershed segment and the lesion.
  • the rendering of the tissue is not exactly the same, so on the one hand, it can visually display and distinguish different medical tissues, and on the other hand, it can also visually show how the lesion invades each watershed segment, so as to provide sufficient reference for doctors in the application process such as surgical planning. Help to improve user experience.
  • the watershed algorithm can include two types, one is the watershed algorithm based on the overflow process, and its intuitive idea comes from topography, and the other is to correlate the pixels with the catchment area and calculate them to the minimum value The shortest topological distance of .
  • the specific process of the watershed algorithm please refer to the specific technical details of the watershed algorithm.
  • the following watershed segmentation can be obtained based on the hepatic portal vein: caudate lobe, upper part of the left outer lobe, left outer lobe Lower segment, left inner lobe, lower right anterior lobe, upper right anterior lobe, lower right posterior lobe, upper right posterior lobe.
  • caudate lobe upper part of the left outer lobe
  • left outer lobe Lower segment
  • left inner lobe lower right anterior lobe
  • upper right anterior lobe upper right anterior lobe
  • lower right posterior lobe upper right posterior lobe
  • data of invasion of the target tissue by the lesion may be detected, and the target tissue may include at least one of target blood vessels and watershed segments, and an early warning prompt may be output based on the invasion data.
  • the invasion data may include at least one of the volume of the lesion, the surface area of the lesion, the long diameter of the lesion, and the short diameter of the lesion. It should be noted that the long diameter of the lesion represents the diameter of the longest point of the lesion, and the short diameter of the lesion represents the The diameter at the shortest point.
  • the volume may represent the volume of the intersecting portion of the lesion and the target tissue
  • the surface area may represent the surface area of the intersecting portion of the lesion and the target tissue
  • the long diameter may represent the longest diameter of the intersecting portion of the lesion and the target tissue
  • the short axis represents the diameter of the shortest point where the lesion intersects with the target tissue.
  • the invasion data may include the proportion of the intersecting part of the lesion and the target tissue in the target tissue.
  • the intersecting part of the lesion and the caudate lobe accounts for 1% of the caudate lobe
  • the intersecting part of the lesion and the upper segment of the left outer lobe accounts for 5% of the upper segment of the left outer lobe.
  • the malignancy of the lesion can be evaluated, for example, the larger the volume, the higher the malignancy; or the larger the surface area, the higher the malignancy, and so on, and no more examples will be given here.
  • an early warning prompt of a corresponding level can be output. For example, the higher the degree of malignancy, the higher the output warning level.
  • eye-catching methods such as “dark red” and “bold” can be used to prompt
  • low-level early warning prompts "light red” and other methods can be used to prompt.
  • the above method detects the violation data of the lesion against the target tissue, and outputs an early warning based on the violation data, which can realize the automatic detection of the lesion violation, which is conducive to improving the user experience, and further based on the violation data, the malignancy of the lesion is obtained, and based on the malignancy Outputting the corresponding level of early warning prompts can help users understand the malignancy of the lesion more intuitively and quickly, and is conducive to further improving user experience.
  • the organization list can also be displayed, and the organization list includes identifiers of several medical organizations, and the several medical organizations can further include the aforementioned lesion and watershed segmentation.
  • the medical organization corresponding to the selected identifier is used as the first target organization, and the first target organization is highlighted on the image display interface in a preset manner.
  • the The medical tissue corresponding to the unselected identifier is used as the second target tissue, and the second target tissue is hidden on the image display interface.
  • the above method can support user-defined selection of watershed segments that are expected to be highlighted on the image display interface, which is conducive to supporting users to focus on the highlighted watershed segments, and eliminating interference from other watershed segments, which is conducive to improving user experience.
  • the image display interface includes a first display area and a second display area
  • the first display area is used to display the three-dimensional model of medical tissue
  • the second display area is used to display
  • the displayed tissue list includes the identifiers of several medical organizations, and the several medical organizations may further include the aforementioned lesion and watershed segmentation, then in response to the user's selection instruction for the identifier in the tissue list, the The medical organization corresponding to the selected identifier is used as the first target tissue, and the first target tissue is highlighted in the first display area in the first highlighting manner, and the first target tissue is highlighted in the second display area in the second highlighting manner.
  • the medical tissue corresponding to the unselected identifier can be used as the second target tissue, and the second target tissue is hidden in the first display area, and the second target tissue is displayed in the second display area in a conventional display manner .
  • the above method can not only display watershed segments in different dimensions on the image display interface at the same time, which is conducive to improving the richness of image information displayed on the image display interface, but also can display user expectations in the first display area and the second display area.
  • the prominent watershed segmentation enables users to visually connect the corresponding watershed segments in two different angles, 3D and 2D, to enhance user experience.
  • the image processing method of the embodiment of the present application can be applied to the scene of computer-aided surgery planning.
  • the scheme of computer-aided surgery planning is: perform imaging analysis on human body image data, segment important organs, blood vessels, and lesions, and visualize each segmentation result Reconstruction, and then develop a detailed and precise surgical plan.
  • preoperative planning includes the resection or inactivation area planning and preoperative evaluation of lesions; in order to prevent lesion resection or inactivation
  • a safe distance is introduced into the real target area, that is, the tissues within the safe distance of the lesion are resected or inactivated at the same time without endangering important organs and key blood vessels, so as to achieve the effect of completely killing the lesion. Therefore, the detection of lesion extension area and organ-at-risk is very important in preoperative planning and even in intraoperative navigation and warning, and the real-time and accuracy of the detection results are required to be high.
  • the image to be tested is a medical image
  • the target object is a lesion
  • the target tissue is an organ.
  • the first pixel, the second pixel, and the third pixel can be initialized.
  • the original area where the lesion is located in the medical image is obtained, and the pixels in the original area are the first pixels. It is also possible to detect the violation data of each first pixel point on the target tissue and record the violation data, and the first identifier of the first pixel point is a natural number.
  • the pixels outside the original area if it is determined that the 3x3x3 neighborhood of the pixel contains the first pixel, then it is determined that the pixels outside the original area are the second pixels, and the second identifier of the second pixels is a negative number.
  • a pixel in the medical image other than the first pixel and the second pixel is used as a third pixel, and the third identifier of the third pixel is a negative number and is different from the second identifier.
  • the second pixel in the second reference area can be determined based on the voxel coordinates in the medical image and using the image processing method of the foregoing embodiment
  • the physical distance between the point and each first pixel point, the second reference area is the 3x3x3 neighborhood of the second pixel point; it can be determined whether to use the second pixel point as the minimum physical distance between the second pixel point and each first pixel point
  • the new first pixel In the case that the detection result includes the second pixel as the new first pixel, the third pixel that meets the preset condition can be used as the new second pixel, and the above-mentioned parallel processing of each second pixel can be performed again.
  • the connected domain formed by the first pixel point in the original area and the first pixel point updated by the second pixel point can be obtained, and the The connected domain is used as the expansion area of the lesion.
  • the first pixel is assigned a first identifier whose value is a natural number
  • the second pixel is assigned a second identifier whose value is a negative number
  • the third pixel is assigned a third identifier whose value is a negative number.
  • the connected domain formed by all the pixels corresponding to the identifier whose value is a natural number can be used as the lesion extension area.
  • the area expansion ends when all the second pixels have performed the expansion detection, and finally the connected domain formed by all the first pixels is used as the lesion expansion area, which is beneficial to accurately determine the lesion expansion area. area.
  • the user loads liver CT data to the image analysis software, and all detected lesions can be displayed in the lesion list on the display interface when the image analysis software is running; when the user selects a lesion and clicks on the
  • the image processing method of the embodiment of the present application can be used to calculate the area of the lesion expanding, and can generate a corresponding visual rendering effect in the window.
  • the image processing method of the embodiment of the present disclosure can meet the real-time requirements of lesion expansion area and organ-at-risk detection.
  • the GPU core is used as the calculation kernel of lesion expansion detection
  • the lesion expansion area can be realized.
  • the millisecond-level calculation improves the user experience to a certain extent.
  • the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possible
  • the inner logic is OK.
  • FIG. 6 is a schematic framework diagram of an image processing device provided by an embodiment of the present application.
  • the image processing device 60 may include an original area acquisition module 61, a pixel extension detection module 62, and an outer expansion area acquisition module 63.
  • the original area acquisition module 61 is configured to acquire the original area where the target object is located in the image to be tested, wherein the original area There are several first pixels inside, and there are several second pixels outside the original area; the pixel expansion detection module 62 is configured to perform an expansion detection on each second pixel in parallel to obtain a detection result, wherein the detection result includes whether the The second pixel point is used as a new first pixel point; the extended area obtaining module 63 is configured to obtain the extended area of the target object based on the original area and the detection result.
  • the above scheme obtains the original area where the target object is located in the image to be tested, and the original area contains a number of first pixels, and there are a number of second pixels outside the original area.
  • each second pixel is executed in parallel. Expand the detection to obtain the detection result, and the detection result includes whether to use the second pixel as the new first pixel, so that based on the original area and the detection result, the extended area of the target object is obtained.
  • the external expansion detection is based on each It is executed on the second pixel, so it can realize pixel-level area expansion, which is beneficial to improve the accuracy of area expansion.
  • the expansion detection is executed in parallel, it is beneficial to improve the speed of area expansion. Therefore, the accuracy and speed of area expansion can be improved.
  • the pixel extension detection module 62 is configured to perform the extension detection on each of the second pixels in parallel in a manner that each calculation core runs in parallel. Therefore, each computing core runs in parallel the extension detection performed on each second pixel point, which can further improve the calculation efficiency of region extension.
  • the first reference areas where the second pixel points are respectively located overlap with the original area. Therefore, for each second pixel point, the first reference area where it is located intersects with the original one, so before the extension detection, the pixels located outside the original area and farther away from the original area can be excluded, which is beneficial to Increase the speed of area expansion.
  • the pixel extension detection module 62 includes a reference area acquisition submodule configured to acquire a second reference area surrounding the second pixel point; the pixel extension detection module 62 includes a physical distance calculation submodule configured for the second pixel point The second pixel point and each first pixel point in the reference area obtain the physical distance from each first pixel point to the second pixel point respectively; the pixel expansion detection module 62 includes a detection result acquisition sub-module configured to be based on the physical distance , get the detection result.
  • obtaining the second reference area surrounding the second pixel, and obtaining the detection result based on the physical distance from the first pixel to the second pixel in the second reference area can reduce the possibility of the area expanding beyond the safety distance, It is conducive to improving the security of regional expansion.
  • the detection result acquisition submodule includes a first determination unit configured to determine the detection result when the minimum physical distance is lower than a preset threshold, including taking the second pixel as a new first pixel; detecting The result acquisition sub-module includes a second determination unit configured to determine that the detection result includes not using the second pixel as a new first pixel when the minimum physical distance is not lower than a preset threshold.
  • determining the detection result includes taking the second pixel as the new first pixel, and when the minimum physical distance is not lower than the preset threshold, determining the detection result Including not using the second pixel as the new first pixel, it can further ensure that the area expansion does not exceed a safe distance by constraining the minimum physical distance, and improve the safety of the area expansion.
  • the image processing device 60 also includes a duplication detection module configured to detect The result includes taking the second pixel as the new first pixel, taking the third pixel that meets the preset condition as the new second pixel, and re-executing the extension detection for each second pixel in parallel , the step of obtaining the detection result; wherein, the preset condition includes: the first reference area where the third pixel is located contains the first pixel updated by the second pixel.
  • the third pixel that satisfies the preset condition as a new second pixel, and re-execute the step of performing the expansion detection on each second pixel in parallel to obtain the detection result, and the preset condition includes: the third pixel
  • the first reference area where the point is located contains the first pixel point updated by the second pixel point, that is, in the process of area expansion, the second pixel point can be updated to the first pixel point, and the third pixel point will also be updated according to Satisfy the preset condition and use it as a new second pixel point, and re-perform the expansion detection on each second pixel point, so that the area expansion can be carried out in a reciprocating manner, which is beneficial to further improve the accuracy of the area expansion.
  • the expanded area acquiring module 63 is specifically configured to acquire the updated first pixel point and the second pixel point in the original area in response to detecting that each second pixel point has performed the expanded detection.
  • a connected domain formed by a pixel, and the connected domain is used as an extended area. Therefore, when it is detected that each second pixel point has performed the extension detection, the connected domain formed by the first pixel point in the original area and the first pixel point updated by the second pixel point is obtained, and The connected domain is used as the expansion area, that is, the expansion of the area ends with the expansion detection of each second pixel, and the connected domain formed by all the first pixels is used as the expansion area, which is conducive to improving the expansion. area accuracy.
  • the image to be tested is a medical image
  • the target object is a lesion
  • the medical image also includes several target tissues
  • the image processing device 60 also includes an infringement detection module configured to detect the impact of each first pixel on several target tissues. Infringement data of the organization; wherein, the infringement data includes: the target organization infringed by the first pixel. Therefore, the image to be tested is a medical image, and the target object is a lesion.
  • the medical image also includes several target tissues. Including the target tissue violated by the first pixel, that is, the infringement data of each first pixel on the target tissue can be recorded, so that reference information can be provided during the application process, which is conducive to improving user experience.
  • the image processing device 60 also includes a list display module configured to display a list of objects; wherein, the object list includes identifiers of multiple target objects; the image processing device 60 It also includes an external expansion interaction module configured to respond to the identifier being in the selected state and the external expansion instruction input by the user, combined with the pixel external expansion detection module 62 and the external expansion area acquisition module 63 for the target object corresponding to the identifier.
  • an object list is displayed, and the object list includes identifiers of a plurality of target objects.
  • the object list includes identifiers of a plurality of target objects.
  • execute the expansion detection for each second pixel point in parallel obtain the detection result and the subsequent steps, and obtain the expansion area, so it is possible to have multiple target objects in the image to be tested
  • regional expansion is performed according to user instructions, which is conducive to improving user experience.
  • the image processing device 60 includes a triangulation module configured to triangulate the surface mesh of the target object based on the extended area; the image processing device 60 includes a model rendering module configured to use the rendering parameters of the target object Rendering the surface mesh of the target object to obtain an image model of the target object; the image processing device 60 includes a model display module configured to display the image model of the target object on an image display interface.
  • the surface mesh of the target object is obtained based on the triangulation of the extended area, and the rendering parameters of the target object are used to render the surface mesh of the target object to obtain the image model of the target object.
  • the image model of the target object is displayed on the display interface, so it can be beneficial to intuitively display the three-dimensional information of the target object and improve user experience.
  • the above-mentioned original area acquisition module 61, pixel extension detection module 62, extension area acquisition module 63, repetition detection module, infringement detection module and triangulation module can all be implemented based on the processor of the electronic device.
  • FIG. 7 is a schematic frame diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 70 includes a memory 71 and a processor 72 coupled to each other, and the processor 72 is configured to execute program instructions stored in the memory 71 to implement the steps of any one of the above image processing method embodiments.
  • the electronic device 70 may include, but is not limited to: a microcomputer and a server.
  • the electronic device 70 may also include mobile devices such as notebook computers and tablet computers, which are not limited here.
  • the processor 72 is used to control itself and the memory 71 to implement the steps of any one of the above image processing method embodiments.
  • the processor 72 may also be called a central processing unit (Central Processing Unit, CPU).
  • the processor 72 may be an integrated circuit chip with signal processing capability.
  • the processor 72 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the processor 72 may be jointly implemented by an integrated circuit chip.
  • the aforementioned electronic device is a terminal device or a server.
  • the expansion detection is performed based on each second pixel point, it can realize pixel-level area expansion, which is beneficial to improve the accuracy of area expansion; on the other hand, because the expansion detection is performed in parallel , so it is beneficial to increase the speed of regional expansion. Therefore, the accuracy and speed of area expansion can be improved.
  • FIG. 8 is a schematic framework diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable storage medium 80 stores program instructions 801 that can be executed by the processor, and the program instructions 801 are used to implement the steps of any of the above image processing method embodiments.
  • the expansion detection is performed based on each second pixel point, it can realize pixel-level area expansion, which is beneficial to improve the accuracy of area expansion; on the other hand, because the expansion detection is performed in parallel , so it is beneficial to increase the speed of regional expansion. Therefore, the accuracy and speed of area expansion can be improved.
  • the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the methods described in the method embodiments above, and its specific implementation can refer to the description of the method embodiments above. For brevity, here No longer.
  • the disclosed methods and devices may be implemented in other ways.
  • the device implementations described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • a unit described as a separate component may or may not be physically separated, and a component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or may also be distributed to network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
  • the embodiment of the present application discloses an image processing method, a related device, electronic equipment, a computer storage medium and a computer program.
  • the image processing method includes: obtaining the original area where the target object is located in the image to be tested, wherein the original area contains a number of first pixels, and there are a number of second pixels outside the original area; parallelly performing external expansion detection on each second pixel , to obtain a detection result, wherein the detection result includes whether the second pixel is used as a new first pixel; based on the original area and the detection result, an extended area of the target object is obtained.
  • the above solution can improve the accuracy and speed of area expansion.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Radiology & Medical Imaging (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)

Abstract

Embodiments of the present application disclose an image processing method and a related apparatus, an electronic device, a computer storage medium and a computer program. The image processing method comprises: acquiring within an image to be measured an original region where a target object is located, wherein several first pixel points are comprised in the original region, and there are several second pixel points outside of the original region; performing expansion detection in parallel on the second pixel points to obtain a detection result, wherein the detection result comprises whether the second pixel points are used as new first pixel points; and on the basis of the original region and the detection result, obtaining an expanded region of the target object.

Description

图像处理方法及相关装置、电子设备、存储介质和程序Image processing method and related device, electronic equipment, storage medium and program
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202110767334.1、申请日为2021年7月7日,名称为“图像处理方法及相关装置和电子设备、存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with the application number 202110767334.1, the filing date is July 7, 2021, and the title is "image processing method and related devices, electronic equipment, and storage medium", and claims the priority of the Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本申请涉及图像处理技术领域,涉及但不限于一种图像处理方法及相关装置、电子设备、存储介质和程序。This application relates to the technical field of image processing, involving but not limited to an image processing method and related devices, electronic equipment, storage media and programs.
背景技术Background technique
随着信息技术的发展,图像检测已经在医疗、交通等众多行业得到了广泛应用。在诸多图像检测手段中,通过目标检测能够检测出图像中目标对象的图像区域,以便后续进行图像分析。With the development of information technology, image detection has been widely used in many industries such as medical treatment and transportation. Among many image detection methods, target detection can detect the image area of the target object in the image for subsequent image analysis.
在现实场景中,图像区域可能存在区域外扩的技术需求,且区域外扩往往面临着精度和速度的双重挑战。例如,为了预防病灶切除或灭活的愈后复发,通常需要在病灶实际的原始区域基础上进行外扩,并切除或灭活外扩区域内组织,以期达到彻底杀灭病灶的效果。In real-world scenarios, there may be technical requirements for area expansion in image areas, and area expansion often faces dual challenges of accuracy and speed. For example, in order to prevent recurrence after lesion resection or inactivation, it is usually necessary to expand the lesion on the basis of the actual original area, and resect or inactivate the tissue in the expanded area, in order to achieve the effect of completely killing the lesion.
发明内容Contents of the invention
本申请实施例提供一种图像处理方法及相关装置、电子设备、计算机存储介质和计算机程序。Embodiments of the present application provide an image processing method and related devices, electronic equipment, computer storage media, and computer programs.
本申请实施例提供了一种图像处理方法,应用于电子设备中,该方法包括:获取待测图像中目标对象所在的原始区域,其中,原始区域内包含若干第一像素点,原始区域外存在若干第二像素点;对各个第二像素点并行执行外扩检测,得到检测结果,其中,检测结果包括是否将第二像素点作为新的第一像素点;基于原始区域和检测结果,得到目标对象的外扩区域。An embodiment of the present application provides an image processing method, which is applied to electronic devices. The method includes: obtaining the original area where the target object is located in the image to be tested, wherein the original area contains several first pixel points, and there are A number of second pixels; perform outreach detection on each second pixel in parallel to obtain a detection result, wherein the detection result includes whether to use the second pixel as a new first pixel; based on the original area and the detection result, obtain the target The bounding area of the object.
因此,获取待测图像中目标对象所在的原始区域,且原始区域内包含若干第一像素点,原始区域外存在若干第二像素点,在此基础上,对各个第二像素点并行执行外扩检测,得到检测结果,且检测结果包括是否将第二像素点作为新的第一像素点,从而基于原始区域和检测结果,得到目标对象的外扩区域,一方面由于外扩检测是基于各个第二像素点而执行的,故能够实现像素级的区域外扩,有利于提高区域外扩的精度,另一方面由于外扩检测是并行执行的,故有利于提高区域外扩的速度。故此,能够提高区域外扩的精度和速度。Therefore, the original area where the target object is located in the image to be tested is obtained, and the original area contains several first pixels, and there are several second pixels outside the original area. On this basis, the external expansion is performed on each second pixel in parallel Detection, to obtain the detection result, and the detection result includes whether to use the second pixel as the new first pixel, so that based on the original area and the detection result, the expanded area of the target object is obtained. On the one hand, the expanded detection is based on each first pixel. It is performed by two pixels, so it can realize pixel-level area expansion, which is beneficial to improve the accuracy of area expansion. On the other hand, because the expansion detection is executed in parallel, it is beneficial to improve the speed of area expansion. Therefore, the accuracy and speed of area expansion can be improved.
在一些实施例中,所述对各个所述第二像素点并行执行外扩检测,包括:采用各个计算内核并行运行的方式,对所述各个所述第二像素点并行执行外扩检测。因此,由各个计算内核并行运行对各个第二像素点所执行的外扩检测,能够进一步提高区域外扩的计算效率。In some embodiments, the performing the extension detection on each of the second pixel points in parallel includes: performing the extension detection on each of the second pixel points in parallel in a manner that each calculation kernel runs in parallel. Therefore, each computing core runs in parallel the extension detection performed on each second pixel point, which can further improve the calculation efficiency of region extension.
在一些实施例中,各个第二像素点分别所在的第一参考区域均与原始区域存在交集。因此,对于每一第二像素点而言,其所在的第一参考区域均与原始存在交集,故在外扩检测之前,能够排除位于原始区域之外且距原始区域较远的像素点,有利于提高区域外扩速度。In some embodiments, the first reference areas where the second pixel points are respectively located overlap with the original area. Therefore, for each second pixel point, the first reference area where it is located intersects with the original one, so before the extension detection, the pixels located outside the original area and farther away from the original area can be excluded, which is beneficial to Increase the speed of area expansion.
在一些实施例中,所述对各个所述第二像素点并行执行外扩检测,得到检测结果,包括:获取包围第二像素点的第二参考区域,第二参考区域内包含至少一个第一像素点; 对于第二参考区域内的第二像素点和各个第一像素点,分别获取各个第一像素点至第二像素点的物理距离;基于物理距离,得到检测结果。因此,获取包围第二像素点的第二参考区域,且第二参考区域内包含至少一个第一像素点,并基于第二参考区域内第一像素点至第二像素点的物理距离,得到检测结果,能够降低区域外扩超出安全距离的可能性,有利于提升区域外扩的安全性。In some embodiments, performing the outreach detection on each of the second pixel points in parallel to obtain the detection result includes: obtaining a second reference area surrounding the second pixel point, and the second reference area contains at least one first pixel points; for the second pixel point and each first pixel point in the second reference area, respectively acquire the physical distance from each first pixel point to the second pixel point; and obtain the detection result based on the physical distance. Therefore, a second reference area surrounding the second pixel is obtained, and the second reference area contains at least one first pixel, and based on the physical distance from the first pixel to the second pixel in the second reference area, the detected As a result, it is possible to reduce the possibility of the area expanding beyond the safe distance, which is beneficial to improve the safety of the area expanding.
在一些实施例中,基于物理距离,得到检测结果,包括:在最小物理距离低于预设阈值的情况下,确定检测结果包括将第二像素点作为新的第一像素点;在最小物理距离不低于预设阈值的情况下,确定检测结果包括不将第二像素点作为新的第一像素点。因此,在最小物理距离低于预设阈值的情况下,确定检测结果包括将第二像素点作为新的第一像素点,而在最小物理距离不低于预设阈值的情况下,确定检测结果包括不将第二像素点作为新的第一像素点,能够通过约束最小物理距离进一步确保区域外扩不超出安全距离,提升区域外扩的安全性。In some embodiments, obtaining the detection result based on the physical distance includes: when the minimum physical distance is lower than a preset threshold, determining the detection result includes using the second pixel as a new first pixel; at the minimum physical distance If it is not lower than the preset threshold, determining the detection result includes not using the second pixel as a new first pixel. Therefore, when the minimum physical distance is lower than the preset threshold, determining the detection result includes taking the second pixel as the new first pixel, and when the minimum physical distance is not lower than the preset threshold, determining the detection result Including not using the second pixel as the new first pixel, it can further ensure that the area expansion does not exceed a safe distance by constraining the minimum physical distance, and improve the safety of the area expansion.
在一些实施例中,原始区域外存在若干第三像素点,且各个第三像素点分别所在的第一参考区域与原始区域均不存在交集;在基于原始区域和检测结果,得到目标对象的外扩区域之前,方法还包括:在检测结果包括将第二像素点作为新的第一像素点的情况下,将满足预设条件的第三像素点作为新的第二像素点,并重新执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤;其中,预设条件包括:第三像素点所在的第一参考区域内包含由第二像素点更新得到的第一像素点。In some embodiments, there are several third pixel points outside the original area, and there is no intersection between the first reference area where each third pixel point is located and the original area; based on the original area and the detection result, the outer area of the target object Before expanding the area, the method further includes: when the detection result includes the second pixel as the new first pixel, using the third pixel that meets the preset condition as the new second pixel, and re-executing the The step of performing out-expansion detection on each second pixel in parallel to obtain a detection result; wherein, the preset condition includes: the first reference area where the third pixel is located contains the first pixel updated by the second pixel.
因此,原始区域外包括若干第三像素点,且各个第三像素点所在的第一参考区域与原始区域均不存在交集,在检测结果包括将第二像素点作为新的第一像素点的情况下,将满足预设条件的第三像素点作为新的第二像素点,并重新执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤,且预设条件包括:第三像素点所在的第一参考区域包含由第二像素点更新得到的第一像素点,即在区域外扩过程中,能够随着第二像素点更新为第一像素点,第三像素点也会根据满足预设条件而作为新的第二像素点,并重新对各个第二像素点执行外扩检测,如此往复能够传递式地进行区域外扩,有利于进一步提高区域外扩的准确性。Therefore, there are several third pixels outside the original area, and there is no intersection between the first reference area where each third pixel is located and the original area, when the detection result includes the second pixel as the new first pixel Next, use the third pixel that satisfies the preset condition as a new second pixel, and re-execute the step of performing the expansion detection on each second pixel in parallel to obtain the detection result, and the preset condition includes: the third pixel The first reference area where the point is located contains the first pixel point updated by the second pixel point, that is, in the process of area expansion, the second pixel point can be updated to the first pixel point, and the third pixel point will also be updated according to Satisfy the preset condition and use it as a new second pixel point, and re-perform the expansion detection on each second pixel point, so that the area expansion can be carried out in a reciprocating manner, which is beneficial to further improve the accuracy of the area expansion.
在一些实施例中,基于原始区域和检测结果,得到目标对象的外扩区域,包括:响应于检测到各个第二像素点均已执行外扩检测,获取由原始区域内第一像素点和由第二像素点更新得到的第一像素点所形成的连通域,并将连通域作为外扩区域。因此,在检测到各个第二像素点均已执行外扩检测的情况下,获取由原始区域内第一像素点和由第二像素点更新得到的第一像素点所形成的连通域,并将连通域作为外扩区域,即区域外扩随着各个第二像素点均已执行外扩检测而结束,并由最终所有第一像素点所形成的连通域作为外扩区域,有利于提升外扩区域的准确性。In some embodiments, based on the original area and the detection result, obtaining the extended area of the target object includes: in response to detecting that each second pixel point has performed an extended detection, obtaining the first pixel point in the original area and the first pixel point in the original area by The second pixel is updated to obtain the connected domain formed by the first pixel, and the connected domain is used as an extended area. Therefore, when it is detected that each second pixel point has performed the extension detection, the connected domain formed by the first pixel point in the original area and the first pixel point updated by the second pixel point is obtained, and The connected domain is used as the expansion area, that is, the expansion of the area ends with the expansion detection of each second pixel, and the connected domain formed by all the first pixels is used as the expansion area, which is conducive to improving the expansion. area accuracy.
在一些实施例中,待测图像为医学图像,目标对象为病灶,且医学图像中还包括若干标的组织;方法还包括:检测各个第一像素点分别对若干标的组织的侵犯数据;其中,侵犯数据包括:第一像素点所侵犯的标的组织。因此,待测图像为医学图像,且目标对象为病灶,医学图像中还包括若干标的组织,在区域外扩过程中,进一步检测各个第一像素点分别对若干标的组织的侵犯数据,且侵犯数据包括第一像素点所侵犯的标的组织,即能够记录各个第一像素点分别对标的组织的侵犯数据,从而能够应用过程中提供参考信息,有利于提升用户体验。In some embodiments, the image to be tested is a medical image, the target object is a lesion, and the medical image also includes several target tissues; the method further includes: detecting the infringement data of each first pixel point on several target tissues; wherein, the infringement The data includes: the target organization violated by the first pixel. Therefore, the image to be tested is a medical image, and the target object is a lesion. The medical image also includes several target tissues. Including the target tissue violated by the first pixel, that is, the infringement data of each first pixel against the target tissue can be recorded, so that reference information can be provided during the application process, which is conducive to improving user experience.
在一些实施例中,待测图像包括多个目标对象;方法还包括:显示对象列表;其中,对象列表包括多个目标对象的标识符;响应于标识符处于被选择状态以及用户输入的外扩指令,对标识符对应的目标对象,执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤以及后续步骤,得到外扩区域。In some embodiments, the image to be tested includes a plurality of target objects; the method further includes: displaying an object list; wherein the object list includes identifiers of a plurality of target objects; Instructions, for the target object corresponding to the identifier, perform the step of performing the expansion detection on each of the second pixel points in parallel to obtain the detection result and the subsequent steps to obtain the expansion area.
因此,待测图像中识别得到多个目标对象,在此基础上,显示对象列表,且对象列 表包括多个目标对象的表示符,从而响应于标识符处于被选择状态以及用户输入的外扩指令,对标识符对应的目标对象,执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤以及后续步骤,得到外扩区域,故能够在待测图像中存在多个目标对象的情况下,根据用户指示进行区域外扩,有利于提高用户体验。Therefore, a plurality of target objects are identified in the image to be tested. On this basis, an object list is displayed, and the object list includes indicators of a plurality of target objects. , for the target object corresponding to the identifier, execute the expansion detection for each second pixel point in parallel, obtain the detection result and the subsequent steps, and obtain the expansion area, so it is possible to have multiple target objects in the image to be tested In this case, regional expansion is performed according to user instructions, which is conducive to improving user experience.
在一些实施例中,在基于原始区域和检测结果,得到目标对象的外扩区域之后,方法还包括:基于外扩区域,三角化得到目标对象的表面网格;利用目标对象的渲染参数对目标对象的表面网格进行渲染,得到目标对象的图像模型;在图像显示界面中显示目标对象的图像模型。In some embodiments, after obtaining the expanded area of the target object based on the original area and the detection result, the method further includes: obtaining the surface mesh of the target object by triangulation based on the expanded area; The surface grid of the object is rendered to obtain the image model of the target object; the image model of the target object is displayed in the image display interface.
因此,在得到外扩区域之后,基于外扩区域三角化得到目标对象的表面网格,并利用目标对象的渲染参数对目标对象的表面网格进行渲染,得到目标对象的图像模型,从而在图像显示界面中显示目标对象的图像模型,故能够有利于直观展示目标对象的三维信息,有利于提升用户体验。Therefore, after obtaining the extended area, the surface mesh of the target object is obtained based on the triangulation of the extended area, and the rendering parameters of the target object are used to render the surface mesh of the target object to obtain the image model of the target object. The image model of the target object is displayed on the display interface, so it can be beneficial to intuitively display the three-dimensional information of the target object and improve user experience.
本申请实施例还提供了一种图像处理装置,包括:原始区域获取模块、像素外扩检测模块和外扩区域获取模块,原始区域获取模块,配置为获取待测图像中目标对象所在的原始区域,其中,原始区域内包含若干第一像素点,原始区域外存在若干第二像素点;像素外扩检测模块,配置为对各个第二像素点并行执行外扩检测,得到检测结果,其中,检测结果包括是否将第二像素点作为新的第一像素点;外扩区域获取模块,配置为基于原始区域和检测结果,得到目标对象的外扩区域。The embodiment of the present application also provides an image processing device, including: an original area acquisition module, a pixel expansion detection module, and an expansion area acquisition module, and the original area acquisition module is configured to acquire the original area where the target object in the image to be tested is located , wherein, the original area contains a number of first pixels, and there are a number of second pixels outside the original area; the pixel expansion detection module is configured to perform an expansion detection on each second pixel in parallel to obtain a detection result, wherein, the detection The result includes whether to use the second pixel point as the new first pixel point; the extended area obtaining module is configured to obtain the extended area of the target object based on the original area and the detection result.
在一些实施例中,所述像素外扩检测模块,配置为采用各个计算内核并行运行的方式,对所述各个所述第二像素点并行执行外扩检测。因此,由各个计算内核并行运行对各个第二像素点所执行的外扩检测,能够进一步提高区域外扩的计算效率。In some embodiments, the pixel extension detection module is configured to perform the extension detection on each of the second pixel points in parallel in a manner that each calculation kernel runs in parallel. Therefore, each computing core runs in parallel the extension detection performed on each second pixel point, which can further improve the calculation efficiency of region extension.
在一些实施例中,各个第二像素点分别所在的第一参考区域均与原始区域存在交集。因此,对于每一第二像素点而言,其所在的第一参考区域均与原始存在交集,故在外扩检测之前,能够排除位于原始区域之外且距原始区域较远的像素点,有利于提高区域外扩速度。In some embodiments, the first reference areas where the second pixel points are respectively located overlap with the original area. Therefore, for each second pixel point, the first reference area where it is located intersects with the original one, so before the extension detection, the pixels located outside the original area and farther away from the original area can be excluded, which is beneficial to Increase the speed of area expansion.
在一些实施例中,像素外扩检测模块包括参考区域获取子模块,配置为获取包围第二像素点的第二参考区域;像素外扩检测模块包括物理距离计算子模块,配置为对于第二参考区域内的第二像素点和各个第一像素点,分别获取各个第一像素点至第二像素点的物理距离;像素外扩检测模块包括检测结果获取子模块,配置为基于物理距离,得到检测结果。因此,获取包围第二像素点的第二参考区域,并基于第二参考区域内第一像素点至第二像素点的物理距离,得到检测结果,能够降低区域外扩超出安全距离的可能性,有利于提升区域外扩的安全性。In some embodiments, the pixel extension detection module includes a reference area acquisition submodule configured to acquire a second reference area surrounding the second pixel point; the pixel extension detection module includes a physical distance calculation submodule configured for the second reference The second pixel point and each first pixel point in the area respectively obtain the physical distance from each first pixel point to the second pixel point; the pixel expansion detection module includes a detection result acquisition sub-module configured to obtain a detection result based on the physical distance result. Therefore, obtaining the second reference area surrounding the second pixel, and obtaining the detection result based on the physical distance from the first pixel to the second pixel in the second reference area, can reduce the possibility of the area expanding beyond the safety distance, It is conducive to improving the security of regional expansion.
在一些实施例中,检测结果获取子模块包括第一确定单元,配置为在最小物理距离低于预设阈值的情况下,确定检测结果包括将第二像素点作为新的第一像素点;检测结果获取子模块包括第二确定单元,配置为在最小物理距离不低于预设阈值的情况下,确定检测结果包括不将第二像素点作为新的第一像素点。因此,在最小物理距离低于预设阈值的情况下,确定检测结果包括将第二像素点作为新的第一像素点,而在最小物理距离不低于预设阈值的情况下,确定检测结果包括不将第二像素点作为新的第一像素点,能够通过约束最小物理距离进一步确保区域外扩不超出安全距离,提升区域外扩的安全性。In some embodiments, the detection result acquisition submodule includes a first determination unit configured to determine the detection result when the minimum physical distance is lower than a preset threshold, including taking the second pixel as a new first pixel; detecting The result acquisition sub-module includes a second determination unit configured to determine that the detection result includes not using the second pixel as a new first pixel when the minimum physical distance is not lower than a preset threshold. Therefore, when the minimum physical distance is lower than the preset threshold, determining the detection result includes taking the second pixel as the new first pixel, and when the minimum physical distance is not lower than the preset threshold, determining the detection result Including not using the second pixel as the new first pixel, it can further ensure that the area expansion does not exceed a safe distance by constraining the minimum physical distance, and improve the safety of the area expansion.
在一些实施例中,原始区域外存在若干第三像素点,且各个第三像素点所在的第一参考区域与原始区域均不存在交集;图像处理装置还包括重复检测模块,配置为在检测结果包括将第二像素点作为新的第一像素点的情况下,将满足预设条件的第三像素点作为新的第二像素点,并重新执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤;其中,预设条件包括:第三像素点所在的第一参考区域内包含由第二像素点更新 得到的第一像素点。In some embodiments, there are several third pixel points outside the original area, and there is no intersection between the first reference area where each third pixel point is located and the original area; the image processing device also includes a duplication detection module configured to Including the case where the second pixel is used as the new first pixel, the third pixel that meets the preset condition is used as the new second pixel, and re-performs the extension detection for each second pixel in parallel, The step of obtaining the detection result; wherein, the preset condition includes: the first reference area where the third pixel is located contains the first pixel updated by the second pixel.
因此,原始区域外存在若干第三像素点,且各个第三像素点所在的第一参考区域与原始区域均不存在交集,在检测结果包括将第二像素点作为新的第一像素点的情况下,将满足预设条件的第三像素点作为新的第二像素点,并重新执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤,且预设条件包括:第三像素点所在的第一参考区域包含由第二像素点更新得到的第一像素点,即在区域外扩过程中,能够随着第二像素点更新为第一像素点,第三像素点也会根据满足预设条件而作为新的第二像素点,并重新对各个第二像素点执行外扩检测,如此往复能够传递式地进行区域外扩,有利于进一步提高区域外扩的准确性。Therefore, there are several third pixels outside the original area, and there is no intersection between the first reference area where each third pixel is located and the original area, when the detection result includes the second pixel as the new first pixel Next, use the third pixel that satisfies the preset condition as a new second pixel, and re-execute the step of performing the expansion detection on each second pixel in parallel to obtain the detection result, and the preset condition includes: the third pixel The first reference area where the point is located contains the first pixel point updated by the second pixel point, that is, in the process of area expansion, the second pixel point can be updated to the first pixel point, and the third pixel point will also be updated according to Satisfy the preset condition and use it as a new second pixel point, and re-perform the expansion detection on each second pixel point, so that the area expansion can be carried out in a reciprocating manner, which is beneficial to further improve the accuracy of the area expansion.
在一些实施例中,外扩区域获取模块具体配置为响应于检测到各个第二像素点均已执行外扩检测,获取由原始区域内第一像素点和由第二像素点更新得到的第一像素点所形成的连通域,并将连通域作为外扩区域。因此,在检测到各个第二像素点均已执行外扩检测的情况下,获取由原始区域内第一像素点和由第二像素点更新得到的第一像素点所形成的连通域,并将连通域作为外扩区域,即区域外扩随着各个第二像素点均已执行外扩检测而结束,并由最终所有第一像素点所形成的连通域作为外扩区域,有利于提升外扩区域的准确性。In some embodiments, the extended area acquisition module is specifically configured to acquire the first pixel points updated by the first pixel points in the original area and the second pixel points in the original area in response to detecting that each second pixel point has performed the extended detection. The connected domain formed by the pixels, and the connected domain is used as the external expansion area. Therefore, when it is detected that each second pixel point has performed the extension detection, the connected domain formed by the first pixel point in the original area and the first pixel point updated by the second pixel point is obtained, and The connected domain is used as the expansion area, that is, the expansion of the area ends with the expansion detection of each second pixel, and the connected domain formed by all the first pixels is used as the expansion area, which is conducive to improving the expansion. area accuracy.
在一些实施例中,待测图像为医学图像,目标对象为病灶,且医学图像中还包括若干标的组织;图像处理装置还包括侵犯检测模块,配置为检测各个第一像素点分别对若干标的组织的侵犯数据;其中,侵犯数据包括:第一像素点所侵犯的标的组织。因此,待测图像为医学图像,且目标对象为病灶,医学图像中还包括若干标的组织,在区域外扩过程中,进一步检测各个第一像素点分别对若干标的组织的侵犯数据,且侵犯数据包括第一像素点所侵犯的标的组织,即能够记录各个第一像素点分别对标的组织的侵犯数据,从而能够在应用过程中提供参考信息,有利于提升用户体验。In some embodiments, the image to be tested is a medical image, the target object is a lesion, and the medical image also includes several target tissues; the image processing device further includes an infringement detection module configured to detect the impact of each first pixel on several target tissues. The violation data; wherein, the violation data includes: the target organization violated by the first pixel. Therefore, the image to be tested is a medical image, and the target object is a lesion. The medical image also includes several target tissues. Including the target tissue violated by the first pixel, that is, the infringement data of each first pixel on the target tissue can be recorded, so that reference information can be provided during the application process, which is conducive to improving user experience.
在一些实施例中,待测图像中识别得到多个目标对象;图像处理装置还包括列表显示模块,配置为显示对象列表;其中,对象列表包括多个目标对象的标识符;图像处理装置还包括外扩交互模块,配置为响应于标识符处于被选择状态以及用户输入的外扩指令,结合像素外扩检测模块和外扩区域获取模块对标识符对应的目标对象,执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤以及后续步骤,得到外扩区域。因此,待测图像中识别得到多个目标对象,在此基础上,显示对象列表,且对象列表包括多个目标对象的标识符,从而响应于标识符处于被选择状态以及用户输入的外扩指令,对标识符对应的目标对象,执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤以及后续步骤,得到外扩区域,故能够在待测图像中存在多个目标对象的情况下,根据用户指示进行区域外扩,有利于提高用户体验。In some embodiments, multiple target objects are identified in the image to be tested; the image processing device also includes a list display module configured to display a list of objects; wherein, the object list includes identifiers of multiple target objects; the image processing device also includes The external expansion interaction module is configured to respond to the identifier being in the selected state and the external expansion instruction input by the user, in combination with the pixel external expansion detection module and the external expansion area acquisition module, for the target object corresponding to the identifier, to perform an operation on each second pixel point Executing the expansion detection in parallel, the step of obtaining the detection result and the subsequent steps to obtain the expansion area. Therefore, a plurality of target objects are identified in the image to be tested. On this basis, an object list is displayed, and the object list includes identifiers of a plurality of target objects. , for the target object corresponding to the identifier, execute the expansion detection for each second pixel point in parallel, obtain the detection result and the subsequent steps, and obtain the expansion area, so it is possible to have multiple target objects in the image to be tested In this case, regional expansion is performed according to user instructions, which is conducive to improving user experience.
在一些实施例中,图像处理装置包括三角化模块,配置为基于外扩区域,三角化得到目标对象的表面网格;图像处理装置包括模型渲染模块,配置为利用目标对象的渲染参数对目标对象的表面网格进行渲染,得到目标对象的图像模型;图像处理装置包括模型显示模块,配置为在图像显示界面中显示目标对象的图像模型。In some embodiments, the image processing device includes a triangulation module configured to triangulate the surface mesh of the target object based on the extended area; the image processing device includes a model rendering module configured to render the target object using the rendering parameters of the target object The surface grid is rendered to obtain the image model of the target object; the image processing device includes a model display module configured to display the image model of the target object on the image display interface.
因此,在得到外扩区域之后,基于外扩区域三角化得到目标对象的表面网格,并利用目标对象的渲染参数对目标对象的表面网格进行渲染,得到目标对象的图像模型,从而在图像显示界面中显示目标对象的图像模型,故能够有利于直观展示目标对象的三维信息,有利于提升用户体验。Therefore, after obtaining the extended area, the surface mesh of the target object is obtained based on the triangulation of the extended area, and the rendering parameters of the target object are used to render the surface mesh of the target object to obtain the image model of the target object. The image model of the target object is displayed on the display interface, so it can be beneficial to intuitively display the three-dimensional information of the target object and improve user experience.
本申请实施例还提供了一种电子设备,包括相互耦接的存储器和处理器,处理器用于执行存储器中存储的程序指令,以实现上述任意一种图像处理方法。An embodiment of the present application also provides an electronic device, including a memory and a processor coupled to each other, and the processor is configured to execute program instructions stored in the memory to implement any one of the above image processing methods.
在一些实施例中,上述电子设备为终端设备或服务器。In some embodiments, the aforementioned electronic device is a terminal device or a server.
本申请实施例还提供了一种计算机可读存储介质,其上存储有程序指令,程序指令 被处理器执行时实现上述任意一种图像处理方法。The embodiment of the present application also provides a computer-readable storage medium, on which program instructions are stored, and when the program instructions are executed by a processor, any one of the above-mentioned image processing methods is realized.
本申请实施例还提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行用于实现上述任意一种图像处理方法。The embodiment of the present application also provides a computer program, including computer readable code, when the computer readable code is run in the electronic device, the processor in the electronic device executes any one of the above image processing method.
上述方案,获取待测图像中目标对象所在的原始区域,且原始区域内包含若干第一像素点,原始区域外存在若干第二像素点,在此基础上,对各个第二像素点并行执行外扩检测,得到检测结果,且检测结果包括是否将第二像素点作为新的第一像素点,从而基于原始区域和检测结果,得到目标对象的外扩区域,一方面由于外扩检测是基于各个第二像素点而执行的,故能够实现像素级的区域外扩,有利于提高区域外扩的精度,另一方面由于外扩检测是并行执行的,故有利于提高区域外扩的速度。故此,能够提高区域外扩的精度和速度。The above scheme obtains the original area where the target object is located in the image to be tested, and the original area contains a number of first pixels, and there are a number of second pixels outside the original area. On this basis, each second pixel is executed in parallel. Expand the detection to obtain the detection result, and the detection result includes whether to use the second pixel as the new first pixel, so that based on the original area and the detection result, the extended area of the target object is obtained. On the one hand, because the external expansion detection is based on each It is executed on the second pixel, so it can realize pixel-level area expansion, which is beneficial to improve the accuracy of area expansion. On the other hand, because the expansion detection is executed in parallel, it is beneficial to improve the speed of area expansion. Therefore, the accuracy and speed of area expansion can be improved.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings here are incorporated into the description and constitute a part of the present description. These drawings show embodiments consistent with the present disclosure, and are used together with the description to explain the technical solution of the present disclosure.
图1是本申请实施例提供的图像处理方法的流程示意图;FIG. 1 is a schematic flow diagram of an image processing method provided in an embodiment of the present application;
图2是本申请实施例提供的区域外扩的示意图;Fig. 2 is a schematic diagram of the area expansion provided by the embodiment of the present application;
图3是本申请实施例提供的图像显示界面的一个示意图;Fig. 3 is a schematic diagram of the image display interface provided by the embodiment of the present application;
图4是本申请实施例提供的图像显示界面的另一个示意图;Fig. 4 is another schematic diagram of the image display interface provided by the embodiment of the present application;
图5是本申请实施例提供的图像显示界面的又一个示意图;Fig. 5 is another schematic diagram of the image display interface provided by the embodiment of the present application;
图6是本申请实施例提供的图像处理装置的框架示意图;Fig. 6 is a schematic frame diagram of an image processing device provided by an embodiment of the present application;
图7是本申请实施例提供的电子设备的框架示意图;Fig. 7 is a schematic frame diagram of an electronic device provided by an embodiment of the present application;
图8是本申请实施例提供的计算机可读存储介质的框架示意图。Fig. 8 is a schematic diagram of a computer-readable storage medium provided by an embodiment of the present application.
具体实施方式detailed description
下面结合说明书附图,对本申请实施例的方案进行详细说明。The solutions of the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透彻理解本申请。In the following description, for purposes of illustration rather than limitation, specific details, such as specific system architectures, interfaces, and techniques, are set forth in order to provide a thorough understanding of the present application.
本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。本文中字符“/”,一般表示前后关联对象是一种“或”的关系。此外,本文中的“多”表示两个或者多于两个。The terms "system" and "network" are often used interchangeably herein. The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations. In addition, the term "at least one" herein means any one of a variety or any combination of at least two of the more, for example, including at least one of A, B, and C, which may mean including from A, Any one or more elements selected from the set formed by B and C. The character "/" in this article generally indicates that the contextual objects are an "or" relationship. In addition, "many" herein means two or more than two.
本申请实施例中,图像处理方法的执行主体可以是电子设备,例如,电子设备可以是终端设备、服务器或其它处理设备,其中,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等。在一些可能的实现方式中,该图像处理方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In the embodiment of the present application, the execution subject of the image processing method may be an electronic device, for example, the electronic device may be a terminal device, a server or other processing device, wherein the terminal device may be a user equipment (User Equipment, UE), a mobile device, User terminals, terminals, cellular phones, cordless phones, personal digital assistants (Personal Digital Assistant, PDA), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc. In some possible implementation manners, the image processing method may be implemented by a processor invoking computer-readable instructions stored in a memory.
请参阅图1,图1是本申请实施例提供的图像处理方法的流程示意图。该图像处理方法的流程,可以包括如下步骤:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of the present application. The process flow of the image processing method may include the following steps:
步骤S11:获取待测图像中目标对象所在的原始区域。Step S11: Obtain the original area where the target object is located in the image to be tested.
在一个实施场景中,待测图像和目标对象可以根据实际应用进行设置。例如,在医疗场景中,待测图像可以包括诸如计算机断层扫描(Computed Tomography,CT)、核磁共振(Magnetic Resonance,MR)等医学图像,目标对象可以包括诸如肿瘤、囊肿、脓肿等病灶;或者,在交通场景中,待测图像可以包括监控图像,目标对象可以包括行人、车辆等。其他情况可以以此类推,在此不再一一举例。In an implementation scenario, the image to be tested and the target object can be set according to actual applications. For example, in a medical scene, the image to be tested may include medical images such as computed tomography (CT), magnetic resonance (Magnetic Resonance, MR), etc., and the target object may include lesions such as tumors, cysts, and abscesses; or, In a traffic scene, the images to be tested may include surveillance images, and target objects may include pedestrians, vehicles, and the like. Other situations can be deduced by analogy, and no more examples will be given here.
在一个实施场景中,为了提高识别效率,可以预先训练一个对象识别网络,从而可以利用对象识别网络对待测图像进行识别,得到目标对象所在的原始区域。例如,对象识别网络可以包括但不限于:区域卷积神经网络(Region-Convolutional Neural Networks,R-CNN)、全卷积网络(Fully Convolutional Network,FCN)等等,在此不做限定。在训练对象识别网络之前,可以预先收集包含目标对象的样本图像,且样本图像标注有各个样本像素点所属的样本类别(如,某一像素点标注为其属于目标对象),再利用对象识别网络对样本图像进行识别,得到样本图像中各个像素点分别所属的预测类别,最终可以利用样本类别与预测类别之间的差异,调整对象识别网络的网络参数,以使对象识别网络在训练过程中学习到目标对象的图像特征。基于此,可以利用训练收敛的对象识别网络对待测图像进行识别,得到待测图像中各个像素点所属的像素类别,并将属于目标对象的像素点所形成的连通域作为目标对象所在的原始区域。在目标对象根据实际应用设置为病灶、行人、车辆等情况下,可以以此类推训练得到用于识别病灶的对象识别网络、以及用于识别行人、车辆的对象识别网络,在此不再一一举例。In an implementation scenario, in order to improve the recognition efficiency, an object recognition network can be pre-trained, so that the object recognition network can be used to recognize the image to be tested and obtain the original area where the target object is located. For example, the object recognition network may include but not limited to: Region-Convolutional Neural Networks (R-CNN), Fully Convolutional Network (Fully Convolutional Network, FCN), etc., which are not limited here. Before training the object recognition network, sample images containing target objects can be collected in advance, and the sample images are marked with the sample category to which each sample pixel belongs (for example, a certain pixel is marked as belonging to the target object), and then the object recognition network can be used to Recognize the sample image to obtain the predicted category to which each pixel in the sample image belongs. Finally, the difference between the sample category and the predicted category can be used to adjust the network parameters of the object recognition network so that the object recognition network can learn during the training process. to the image features of the target object. Based on this, the image to be tested can be identified by using the trained and converged object recognition network to obtain the pixel category to which each pixel in the image to be tested belongs, and the connected domain formed by the pixels belonging to the target object can be used as the original area where the target object is located . In the case that the target objects are set as lesions, pedestrians, vehicles, etc. according to the actual application, the object recognition network for identifying lesions and the object recognition network for identifying pedestrians and vehicles can be obtained by analogy training, which will not be repeated here. example.
需要说明的是,本申请实施例中,待测图像可以不限于二维图像,或三维图像。例如,在交通场景中,待测图像可以包括但不限于诸如监控图像等二维图像;而在医疗场景中,待测图像可以包括但不限于诸如CT、MR等三维图像,即在此情形下,待测图像实质上为体数据,且本申请实施例中所述的“第一像素点”、“第二像素点”、“第三像素点”可以表示体数据的体素。It should be noted that, in the embodiment of the present application, the image to be tested may not be limited to a two-dimensional image or a three-dimensional image. For example, in a traffic scene, the image to be tested may include but not limited to two-dimensional images such as surveillance images; while in a medical scene, the image to be tested may include but not limited to three-dimensional images such as CT, MR, etc., that is, in this case , the image to be tested is substantially volume data, and the "first pixel", "second pixel", and "third pixel" described in the embodiments of the present application may represent voxels of the volume data.
本申请实施例中,原始区域内包含若干第一像素点,即原始区域内所含像素点可以直接作为第一像素点。为了便于区分各个第一像素点,可以为各个第一像素点分别赋予第一标识符,且原始区域内各个第一像素点的第一标识符不相同。例如,可以将0、1、2、3等自然数分别赋予各个第一像素点,作为各个第一像素点各自的第一标识符。In the embodiment of the present application, the original area contains several first pixels, that is, the pixels contained in the original area can be directly used as the first pixels. In order to facilitate the distinction of each first pixel point, each first pixel point may be assigned a first identifier respectively, and the first identifiers of each first pixel point in the original area are different. For example, natural numbers such as 0, 1, 2, and 3 may be respectively assigned to each first pixel point as a first identifier of each first pixel point.
本申请实施例中,原始区域外存在若干第二像素点。例如,可以直接将原始区域外的像素点均作为第二像素点;或者,为了提高区域外扩的速度,各个第二像素点分别所在的第一参考区域均与原始区域存在交集,即对于每一个第二像素点而言,其所在的第一参考区域与原始区域存在交集。In the embodiment of the present application, there are several second pixel points outside the original area. For example, the pixels outside the original area can be directly used as the second pixels; or, in order to increase the speed of area expansion, the first reference area where each second pixel is located has an intersection with the original area, that is, for each As far as a second pixel point is concerned, the first reference area where it is located has an intersection with the original area.
在一个实施场景中,第二像素点所在的第一参考区域的中心可以为第二像素点,即对于每一第二像素点而言,可以以其自身为中心确定一个邻域(如,矩形区域、圆形区域等),作为其所在的第一参考区域。也就是说,若原始区域外的某一像素点其邻域与原始区域存在交集,则表示该邻域内存在第一像素点,则可以将该像素点作为第二像素点。In an implementation scenario, the center of the first reference area where the second pixel is located may be the second pixel, that is, for each second pixel, a neighborhood (such as a rectangle) may be determined centered on itself. area, circular area, etc.), as the first reference area where it is located. That is to say, if the neighborhood of a certain pixel outside the original area intersects with the original area, it means that there is a first pixel in the neighborhood, and this pixel can be used as the second pixel.
在一个实施场景中,第一参考区域的尺寸可以根据实际情况进行设置。例如,在对区域外扩的精度要求较高的情况下,第一参考区域的尺寸可以设置地稍小一些,如在待测图像为二维图像的情况下,可以设置为3*3,而在待测图像为三维图像的情况下,可以设置为3*3*3;或者,在对区域外扩的精度要求相对宽松的情况下,第一参考区域的尺寸可以设置地稍大一些,如在待测图像为二维图像的情况下,可以设置为5*5,而在待测图像为三维图像的情况下,可以设置为5*5*5。其他情况可以以此类推,在此不再一一举例。In an implementation scenario, the size of the first reference area may be set according to actual conditions. For example, in the case of high precision requirements for area expansion, the size of the first reference area can be set to be slightly smaller, for example, in the case of a two-dimensional image to be tested, it can be set to 3*3, and In the case that the image to be tested is a 3D image, it can be set to 3*3*3; or, in the case of relatively loose requirements on the accuracy of area expansion, the size of the first reference area can be set slightly larger, such as When the image to be tested is a two-dimensional image, it can be set to 5*5, and when the image to be tested is a three-dimensional image, it can be set to 5*5*5. Other situations can be deduced by analogy, and no more examples will be given here.
在一个实施场景中,为了便于与第一像素点区分,可以为各个第二像素点赋予第二标识符,且第二标识符与第一标识符不同。例如,可以将诸如-1(或-2、-3等)赋予各个第二像素点,作为第二像素点的第二标识符。In an implementation scenario, in order to distinguish from the first pixel, each second pixel may be assigned a second identifier, and the second identifier is different from the first identifier. For example, -1 (or -2, -3, etc.) may be assigned to each second pixel as the second identifier of the second pixel.
步骤S12:对各个第二像素点并行执行外扩检测,得到检测结果。Step S12: Execute out-expansion detection on each second pixel point in parallel to obtain a detection result.
本申请实施例中,检测结果包括是否将第二像素点作为新的第一像素点,如检测结果包括将第二像素点作为新的第一像素点,或者检测结果包括不将第二像素点作为新的第一像素点。需要说明的是,若检测结果包括将第二像素点作为新的第一像素点,则表示可以将该第二像素点作为新的第一像素点。反之,若检测结果包括不将第二像素点作为新的第一像素点,则表示将该第二像素点维持为第二像素点。In the embodiment of the present application, the detection result includes whether the second pixel is used as the new first pixel, for example, the detection result includes the second pixel as the new first pixel, or the detection result includes not using the second pixel as the new first pixel. It should be noted that if the detection result includes the second pixel as the new first pixel, it means that the second pixel can be used as the new first pixel. On the contrary, if the detection result includes not using the second pixel as the new first pixel, it means that the second pixel is maintained as the second pixel.
在一个实施场景中,对各个第二像素点所执行的外扩检测可以是由各个计算内核并行运行的。需要说明的是,为了进一步提升并行执行效果,计算内核可以是图形处理器(Graphics Processing Unit,GPU)的各个核心。例如,可以基于统一计算设备架构(Compute Unified Device Architecture,CUDA)进行并行加速,可以参阅CUDA相关技术细节。上述方式,能够进一步提高区域外扩的计算效率。In an implementation scenario, the extension detection performed on each second pixel point may be executed by each computing core in parallel. It should be noted that, in order to further improve the effect of parallel execution, the computing core may be each core of a graphics processing unit (Graphics Processing Unit, GPU). For example, parallel acceleration can be performed based on Compute Unified Device Architecture (CUDA), and you can refer to CUDA related technical details. The above method can further improve the calculation efficiency of the region expansion.
在一个实施场景中,在对各个第二像素点并行执行外扩检测的过程中,可以获取包围第二像素点的第二参考区域,并对于第二参考区域内的第二像素点和各个第一像素点而言,可以分别获取各个第一像素点至第二像素点的物理距离,以及基于物理距离,得到检测结果。也就是说,在对每一第二像素点执行外扩检测时,均需获取包围该第二像素点的第二参考区域,并对该第二参考区域内的第二像素点和各个第一像素点而言,分别获取各个第一像素点至第二像素点的物理距离。上述方式,能够降低区域外扩超出安全距离的可能性,有利于提升区域外扩的安全性。In an implementation scenario, in the process of performing extension detection on each second pixel point in parallel, a second reference area surrounding the second pixel point may be acquired, and for the second pixel point in the second reference area and each second pixel point For one pixel, the physical distance from each first pixel to the second pixel can be obtained respectively, and a detection result can be obtained based on the physical distance. That is to say, when performing extension detection on each second pixel point, it is necessary to obtain a second reference area surrounding the second pixel point, and the second pixel point in the second reference area and each first pixel point For the pixels, the physical distances from each first pixel to the second pixel are obtained respectively. The above method can reduce the possibility of area expansion beyond the safe distance, and is conducive to improving the safety of area expansion.
在一个实施场景中,包围第二像素点的第二参考区域的中心可以为第二像素点,即第二参考区域可以设置为第二像素点的邻域。In an implementation scenario, the center of the second reference area surrounding the second pixel point may be the second pixel point, that is, the second reference area may be set as a neighborhood of the second pixel point.
在一个实施场景中,为了提高区域外扩过程中的一致性,第二参考区域与第一参考区域的尺寸可以设置为相同。例如,在待测图像为二维图像的情况下,第一参考区域和第二参考区域的尺寸可以均设置为3*3;或者,在待测图像为三维图像的情况下,第一参考区域和第二参考区域的尺寸可以均设置为3*3*3。上述方式,能够在同一邻域范围分别筛选是否存在第一像素点以及物理距离最近的第一像素点,提高区域外扩过程中的一致性。In an implementation scenario, in order to improve the consistency in the area expansion process, the size of the second reference area and the first reference area may be set to be the same. For example, when the image to be tested is a two-dimensional image, the sizes of the first reference area and the second reference area can both be set to 3*3; or, when the image to be tested is a three-dimensional image, the first reference area and the size of the second reference area can both be set to 3*3*3. In the above manner, it is possible to screen whether there is the first pixel point and the first pixel point with the closest physical distance in the same neighborhood, so as to improve the consistency in the process of area expansion.
在一个实施场景中,可以先获取第二参考区域内第一像素点至第二像素点的像素距离,再基于图像像素距离与实际像素距离之间的转换单位(即一个像素距离等于多少物理距离),将计算得到的像素距离转换为物理距离。例如,一个像素距离等于5mm的物理距离,或者,一个像素距离等于1mm的物理距离,在此不做限定。此外,为了便于计算像素距离,可以预先为待测图像中各个像素点赋予一个位置标识符,且各个像素点的位置标识符不相同,在此基础上,可以根据位置标识符之间的差异,计算得到像素距离。以待测图像是二维图像为例,可以将(0,0)位置的像素点赋予位置标识符0,可以将(0,1)位置的像素点赋予位置标识符1,可以将(0,j)位置的像素点赋予位置标识符j,以及将(i,j)位置的像素点赋予位置标识符i+j,以此类推,在此不再一一举例。在此基础上,对于位置标识符为P1的第一像素点,可以确定第一像素点位于待测图像第i1行,且i1=P1/N+1,其中,/表示求商运算,N表示待测图像中像素总列数;与此同时,可以确定第二像素点位于待测图像第j1列,且j1=P1%N+1,其中,%表示求余运算。而对于位置标识符为P2的第二像素点,可以确定第二像素点位于待测图像第i2行,且i2=P2/N+1;与此同时,可以确定第二像素点位于待测图像第j2列,且j2=P2%N+1。在此基础上,再基于第一像素点的像素位置(i1,j1)以及第二像素点的像素位置(i2,j2)计算得到两者之间的像素距离。其他情况可以以此类推,在此不再一一举例。In an implementation scenario, the pixel distance from the first pixel point to the second pixel point in the second reference area can be obtained first, and then based on the conversion unit between the image pixel distance and the actual pixel distance (that is, how much physical distance is equal to a pixel distance ), convert the calculated pixel distance into physical distance. For example, the physical distance where one pixel distance is equal to 5 mm, or the physical distance where one pixel distance is equal to 1 mm, is not limited here. In addition, in order to facilitate the calculation of the pixel distance, a location identifier can be assigned to each pixel in the image to be tested in advance, and the location identifiers of each pixel are different. On this basis, according to the difference between the location identifiers, Calculate the pixel distance. Taking the image to be tested as a two-dimensional image as an example, the pixel at position (0,0) can be assigned to position identifier 0, the pixel at position (0,1) can be assigned to position identifier 1, and the pixel at position (0, The pixel at the j) position is assigned to the position identifier j, and the pixel at the (i, j) position is assigned to the position identifier i+j, and so on, and examples are not given here. On this basis, for the first pixel point whose position identifier is P1, it can be determined that the first pixel point is located in the i1th row of the image to be tested, and i1=P1/N+1, where / represents the quotient operation, and N represents The total number of columns of pixels in the image to be tested; at the same time, it can be determined that the second pixel is located in the j1th column of the image to be tested, and j1=P1%N+1, where % represents a remainder operation. And for the second pixel point whose position identifier is P2, it can be determined that the second pixel point is located in the i2th row of the image to be tested, and i2=P2/N+1; at the same time, it can be determined that the second pixel point is located in the image to be tested Column j2, and j2=P2%N+1. On this basis, the pixel distance between the two is calculated based on the pixel position (i1, j1) of the first pixel point and the pixel position (i2, j2) of the second pixel point. Other situations can be deduced by analogy, and no more examples will be given here.
在一个实施场景中,在最小物理距离低于预设阈值的情况下,可以确定检测结果包括将第二像素点作为新的第一像素点,而在最小物理距离不低于预设阈值的情况下,可以确定检测结果包括不将第二像素点作为新的第一像素点。需要说明的是,预设阈值可 以根据区域外扩的安全距离设置,例如,可以直接将该安全距离设置为预设阈值,或者,在可接受一定程度的误差范围的情况下,也可以将安全距离与预设数值的和值(或差值)设置为预设阈值,在此不做限定。上述方式,能够通过约束最小物理距离进一步确保区域外扩不超出安全距离,提升区域外扩的安全性。In an implementation scenario, when the minimum physical distance is lower than the preset threshold, it may be determined that the detection result includes the second pixel as the new first pixel, and when the minimum physical distance is not lower than the preset threshold In this case, it may be determined that the detection result includes not using the second pixel as the new first pixel. It should be noted that the preset threshold can be set according to the safety distance of the area expansion, for example, the safety distance can be directly set as the preset threshold, or, if a certain degree of error range is acceptable, the safety distance can also be set to The sum (or difference) of the distance and the preset value is set as the preset threshold, which is not limited here. The above method can further ensure that the expansion of the area does not exceed a safe distance by constraining the minimum physical distance, and improve the security of the expansion of the area.
在一个实施场景中,图2是本申请实施例提供的区域外扩的示意图,如图2所示,方格表示待测图像201中各个像素点,其中,斜线阴影填充方格表示原始区域202内的第一像素点。在此基础上,对于原始区域之外的像素点(如图中点状阴影填充方格),若该像素点所在的第一参考区域(如图中加粗虚线框)与原始区域202存在交集,则可以将该像素点作为第二像素点,为了便于附图展示,图2仅示例性地表示其中一个第二像素点,实际应用过程中可以根据前述相关描述,确定出原始区域外各个第二像素点。基于此,对于每一第二像素点,可以获取包围第二像素点的第二参考区域,如前所述为了确保区域外扩过程的一致性,第二参考区域可以与第一参考区域具有相同尺寸,即第二参考区域可以为图中所示加粗虚线框。此外,第二参考区域内包含至少一个第一像素点,在此基础上,对于该第二参考区域内第二像素点(即图中点状阴影填充方格)和各个第一像素点(即图中斜线阴影填充方格),可以计算各个第一像素点分别至第二像素点的物理距离(计算过程可以参阅前述相关描述),并在最小物理距离小于预设阈值的情况下,将第二像素点作为新的第一像素点,而在最小物理距离不小于预设阈值的情况下,不将第二像素点作为新的第一像素点。对于其他第二像素点可以以此类推,最终可以将原始区域内第一像素点以及由第二像素点更新得到的第一像素点所形成的连通域,作为外扩区域203。需要说明的是,为了便于描述,图2以及上述文字部分以二维角度说明区域外扩的具体过程,在待测图像为体数据的情况下,可以以此类推,在此不再一一举例。In an implementation scenario, FIG. 2 is a schematic diagram of the area expansion provided by the embodiment of the present application. As shown in FIG. 2 , the squares represent each pixel in the image to be tested 201, wherein the hatched squares with diagonal lines represent the original area The first pixel in 202. On this basis, for the pixel points outside the original area (as shown in the dotted shadow filled square), if there is an intersection between the first reference area where the pixel point is located (the bold dotted line box in the figure) and the original area 202 , then this pixel can be used as the second pixel. In order to facilitate the display of the drawings, Fig. 2 only shows one of the second pixels by way of example. In the actual application process, each second pixel outside the original area can be determined according to the above-mentioned related descriptions. Two pixels. Based on this, for each second pixel point, the second reference area surrounding the second pixel point can be obtained. As mentioned above, in order to ensure the consistency of the area expansion process, the second reference area can have the same The size, that is, the second reference area may be the bold dashed box shown in the figure. In addition, the second reference area contains at least one first pixel point, on this basis, for the second pixel point in the second reference area (that is, the dotted shaded grid in the figure) and each first pixel point (that is, In the figure, the slanted line shades fill the squares), the physical distance from each first pixel point to the second pixel point can be calculated (the calculation process can refer to the above-mentioned related description), and when the minimum physical distance is less than the preset threshold value, the The second pixel is used as the new first pixel, and in the case that the minimum physical distance is not less than the preset threshold, the second pixel is not used as the new first pixel. The other second pixels can be deduced by analogy, and finally the connected domain formed by the first pixel in the original area and the first pixel updated by the second pixel can be used as the extended area 203 . It should be noted that, for the convenience of description, Figure 2 and the above text part illustrate the specific process of area expansion from a two-dimensional perspective. When the image to be tested is volume data, it can be deduced by analogy, and no more examples are given here. .
在一个实施场景中,原始区域外还存在若干第三像素点,且各个第三像素点所在的第一参考区域与原始区域均不存在交集,则为了进一步提高区域外扩的准确性,还可以在检测结果包括将第二像素点作为新的第一像素点的情况下,将满足预设条件的第三像素点作为新的第二像素点,并重新执行上述对各个第二像素点并行执行外扩检测,得到检测结果的步骤,且预设条件包括:第三像素点所在的第一参考区域包含由第二像素点更新得到的第一像素点。上述方式,在区域外扩过程中,能够随着第二像素点更新为第一像素点,第三像素点也会根据满足预设条件而作为新的第二像素点,并重新对各个第二像素点执行外扩检测,如此往复能够传递式地进行区域外扩,有利于进一步提高区域外扩的准确性。In an implementation scenario, there are several third pixels outside the original area, and there is no intersection between the first reference area where each third pixel is located and the original area, in order to further improve the accuracy of area expansion, you can also In the case that the detection result includes the second pixel as the new first pixel, the third pixel that meets the preset condition is used as the new second pixel, and the above-mentioned parallel execution for each second pixel is re-executed Outward expansion detection is a step of obtaining a detection result, and the preset condition includes: the first reference area where the third pixel point is located includes the first pixel point updated by the second pixel point. In the above method, in the process of area expansion, as the second pixel point is updated to the first pixel point, the third pixel point will also be used as the new second pixel point according to the preset condition, and each second pixel point will be reset The pixel points perform the expansion detection, so that the area expansion can be carried out in such a reciprocating manner, which is conducive to further improving the accuracy of the area expansion.
在一个实施场景中,为了便于与前述第一像素点、第二像素点区分,还可以为各个第三像素点赋予第三标识符,且第三标识符与第一标识符、第二标识符不同。例如,在将自然数赋予各个第一像素点作为第一像素点的第一标识符,并将-1赋予各个第二像素点作为第二像素点的第二标识符的情况下,可以将-2(或,-3、-4等)赋予各个第三像素点作为第三像素点的第三标识符。In an implementation scenario, in order to facilitate the distinction from the aforementioned first pixel and second pixel, a third identifier can also be assigned to each third pixel, and the third identifier is the same as the first identifier and the second identifier different. For example, when a natural number is assigned to each first pixel as the first identifier of the first pixel, and -1 is assigned to each second pixel as the second identifier of the second pixel, -2 can be assigned (or -3, -4, etc.) Assign each third pixel point as a third identifier of the third pixel point.
在一个实施场景中,如前所述,第二像素点所在的第一参考区域可以以第二像素点为中心,在此情况下,第三像素点所在的第一参考区域也可以以第三像素点为中心,从而能够提高区域外扩过程的一致性。In an implementation scenario, as mentioned above, the first reference area where the second pixel is located may be centered on the second pixel. In this case, the first reference area where the third pixel is located may also be centered on the third The pixel is the center, which can improve the consistency of the region expansion process.
在一个实施场景中,如前所述,待测图像和目标对象可以根据实际应用进行设置。待测对象可以是医学图像,目标对象可以是病灶,在此情况下,在区域外扩过程中,还可以检测各个第一像素点分别对若干标的组织的侵犯数据,且侵犯数据可以包括第一像素点所侵犯的标的组织。上述方式,能够记录各个第一像素点分别对标的组织的侵犯数据,从而能够在应用过程中提供参考信息,有利于提升用户体验。In an implementation scenario, as mentioned above, the image to be tested and the target object can be set according to the actual application. The object to be tested can be a medical image, and the target object can be a lesion. In this case, in the process of area expansion, it is also possible to detect the infringement data of each first pixel point on several target tissues, and the infringement data can include the first The target organization violated by the pixel. The above method can record the violation data of each first pixel point against the target tissue, so that reference information can be provided during the application process, which is beneficial to improve user experience.
在一个实施场景中,第一像素点包括原始区域内的第一像素点以及由第二像素点更新得到的第一像素点。例如,在第一像素点位于标的组织的组织区域内时,可以认为第 一像素点侵犯该标的组织,反之,若第一像素点位于标的组织的组织区域外时,可以认为第一像素点并未侵犯该标的组织。In an implementation scenario, the first pixel includes the first pixel in the original area and the first pixel updated by the second pixel. For example, when the first pixel is located within the tissue area of the target tissue, it can be considered that the first pixel violates the target tissue; otherwise, if the first pixel is located outside the tissue area of the target tissue, it can be considered that the first pixel does not The subject organization is not infringed.
在一个实施场景中,标的组织可以根据病灶所在医学组织来进行设置。例如,在病灶位于肝脏的情况下,标的组织可以包括但不限于胆囊、脾脏、胰腺等。其他情况可以以此类推,在此不再一一举例。In an implementation scenario, the target tissue may be set according to the medical tissue where the lesion is located. For example, when the lesion is located in the liver, the target tissue may include, but not limited to, gallbladder, spleen, pancreas, etc. Other situations can be deduced by analogy, and no more examples will be given here.
步骤S13:基于原始区域和检测结果,得到目标对象的外扩区域。Step S13: Obtain the extended area of the target object based on the original area and the detection result.
例如,在检测到各个第二像素点均已执行外扩检测的情况下,可以获取由原始区域内第一像素点和由第二像素点更新得到的第一像素点所形成的连通域,并将该连通域作为外扩区域。如前所述,第一像素点赋有数值为自然数的第一标识符,第二像素点赋有数值为负数的第二标识符,第三像素点赋有数值为负数的第三标识符,在此基础上,可以将所有数值为自然数的标识符对应的像素点所形成的连通域作为外扩区域。上述方式,区域外扩随着各个第二像素点均已执行外扩检测而结束,并由最终所有第一像素点所形成的连通域作为外扩区域,有利于提升外扩区域的准确性。For example, in the case where it is detected that each second pixel point has been subjected to extension detection, the connected domain formed by the first pixel point in the original area and the first pixel point updated by the second pixel point may be obtained, and The connected domain is used as the extension area. As mentioned above, the first pixel is assigned a first identifier whose value is a natural number, the second pixel is assigned a second identifier whose value is a negative number, and the third pixel is assigned a third identifier whose value is a negative number. On this basis Above, the connected domain formed by all the pixels corresponding to the identifier whose value is a natural number can be used as the extended area. In the above method, the area expansion ends when all the second pixels have performed the expansion detection, and finally the connected domain formed by all the first pixels is used as the expanded area, which is beneficial to improve the accuracy of the expanded area.
在一个实施场景中,在得到外扩区域之后,可以基于外扩区域,三角化得到目标对象的表面网格,并利用目标对象的渲染参数对表面网格(mesh)进行渲染,得到目标对象的图像模型,以及在图像显示界面中显示目标对象的图像模型。上述方式,能够有利于直观展示目标对象的三维信息,有利于提升用户体验。In an implementation scenario, after obtaining the extended area, the surface mesh of the target object can be obtained by triangulation based on the extended area, and the surface mesh (mesh) can be rendered using the rendering parameters of the target object to obtain the target object's surface mesh. an image model, and display the image model of the target object in the image display interface. The above-mentioned method can help to intuitively display the three-dimensional information of the target object, and is beneficial to improve user experience.
在一个实施场景中,在三角化过程中,可以采用组织区域表面的散点构成三角形的顶点,连接顶点的线段构成三角形的边,而每一三角形都对应一个面,通过三角化能够模拟复杂物体的表面,如人体、车辆、建筑等,三角化的具体过程,可以参阅三角化的技术细节。In an implementation scenario, during the triangulation process, the scatter points on the surface of the organization area can be used to form the vertices of the triangles, the line segments connecting the vertices form the sides of the triangles, and each triangle corresponds to a face, and complex objects can be simulated through triangulation For the specific process of triangulation, such as human body, vehicle, building, etc., please refer to the technical details of triangulation.
在一个实施场景中,染参数可以包括但不限于:颜色、透明度、材质等等,在此不做限定。例如,在目标对象为病灶的情况下,可以将病灶的渲染参数设置为:黄色、10%的透明度以及表面粗糙材质。其他情况可以以此类推,在此不再一一举例。In an implementation scenario, the dyeing parameters may include but not limited to: color, transparency, material, etc., which are not limited here. For example, in the case that the target object is a lesion, the rendering parameters of the lesion may be set as: yellow, 10% transparency, and rough surface material. Other situations can be deduced by analogy, and no more examples will be given here.
在一个实施场景中,请结合参阅图3和图4,图3是本申请实施例提供的图像显示界面的一个示意图,图3中,肝脏区域的图像包括肝静脉301、肝动脉302、肝门静脉303和第一病灶区域304;图3所示病灶区域是未经区域外扩处理的区域;在对图3所示的病灶区域按照本申请实施例的图像处理方法进行区域外扩处理后,可以得到图4所示的第二病灶区域401。需要说明的是,图3和图4所示仅仅是应用过程中可能存在的一种情况,并不因此而限定其他场景中区域外扩的实际效果。In an implementation scenario, please refer to FIG. 3 and FIG. 4 in conjunction. FIG. 3 is a schematic diagram of the image display interface provided by the embodiment of the present application. In FIG. 3, the image of the liver region includes the hepatic vein 301, the hepatic artery 302, and the hepatic portal vein 303 and the first lesion area 304; the lesion area shown in Figure 3 is an area that has not been processed by area expansion; after performing area expansion processing on the lesion area shown in Figure 3 according to the image processing method of the embodiment of the present application, it can be The second lesion area 401 shown in FIG. 4 is obtained. It should be noted that what is shown in FIG. 3 and FIG. 4 is only a situation that may exist in the application process, and does not limit the actual effect of area expansion in other scenarios.
在一个实施场景中,在待测图像中识别得到多个目标对象的情况下,可以显示对象列表,且对象列表包括多个目标对象的标识符,从而可以响应于标识符处于被选择状态以及用户输入的外扩指令,对标识符对应的目标对象,执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤以及后续步骤,得到外扩区域,具体过程可以参阅前述相关描述。上述方式,能够在待测图像中存在多个目标对象的情况下,根据用户指示进行区域外扩,有利于提高用户体验。In an implementation scenario, when multiple target objects are identified in the image to be tested, an object list may be displayed, and the object list includes identifiers of multiple target objects, so that the identifier may be selected in response to the user's The input expansion command executes the expansion detection on each second pixel in parallel for the target object corresponding to the identifier, and obtains the detection result and subsequent steps to obtain the expansion area. For the specific process, please refer to the above-mentioned relevant description. In the above manner, when there are multiple target objects in the image to be tested, the area can be expanded according to the user's instruction, which is beneficial to improve user experience.
在一个实施场景中,标识符可以包括但不限于:目标对象的名称、代号、编号等,在此不做限定。例如,在目标对象是病灶的情况下,若在待测图像中识别到3个肝囊肿,则可以这3个肝囊肿的标识符可以分别为“肝囊肿1”、“肝囊肿2”、“肝囊肿3”。其他情况可以以此类推,在此不再一一举例。In an implementation scenario, the identifier may include, but is not limited to: the name, code, serial number, etc. of the target object, which is not limited here. For example, in the case where the target object is a lesion, if three liver cysts are identified in the image to be tested, the identifiers of these three liver cysts can be "liver cyst 1", "liver cyst 2", " Liver cyst 3". Other situations can be deduced by analogy, and no more examples will be given here.
在一个实施场景中,为了提升用户交互舒适性,还可以响应于标识符处于被选择状态,在图像显示界面以预设方式突显标识符对应的目标对象的图像模型。预设方式可以包括但不限于:高亮显示、边缘加粗等,在此不做限定。此外,关于图像模型的获取方式,可以参阅前述相关描述。In an implementation scenario, in order to improve user interaction comfort, in response to the identifier being in a selected state, the image model of the target object corresponding to the identifier can be highlighted in a preset manner on the image display interface. The preset methods may include but are not limited to: highlighting, thickening edges, etc., which are not limited here. In addition, regarding the manner of obtaining the image model, reference may be made to the foregoing related descriptions.
在相关技术中,鉴于区域外扩关乎患者术后效果,故在精度和速度方面均具有较高 要求。有鉴于此,如何提高区域外扩的精度和速度成为亟待解决的问题。而在本申请实施例中,可以获取待测图像中目标对象所在的原始区域,且原始区域内包含若干第一像素点,原始区域外存在若干第二像素点,在此基础上,对各个第二像素点并行执行外扩检测,得到检测结果,且检测结果包括是否将第二像素点作为新的第一像素点,从而基于原始区域和检测结果,得到目标对象的外扩区域,一方面由于外扩检测是基于各个第二像素点而执行的,故能够实现像素级的区域外扩,有利于提高区域外扩的精度,另一方面由于外扩检测是并行执行的,故有利于提高区域外扩的速度。故此,能够提高区域外扩的精度和速度。In the related technology, since the area expansion is related to the postoperative effect of the patient, it has high requirements in terms of accuracy and speed. In view of this, how to improve the accuracy and speed of region expansion has become an urgent problem to be solved. However, in the embodiment of the present application, the original area where the target object in the image to be tested is located can be obtained, and the original area contains several first pixel points, and there are several second pixel points outside the original area. Execute the expansion detection of two pixels in parallel to obtain the detection result, and the detection result includes whether to use the second pixel as the new first pixel, so as to obtain the expansion area of the target object based on the original area and the detection result. On the one hand, due to The expansion detection is performed based on each second pixel, so it can realize pixel-level area expansion, which is beneficial to improve the accuracy of area expansion. On the other hand, because the expansion detection is performed in parallel, it is beneficial to improve the area. The speed of expansion. Therefore, the accuracy and speed of area expansion can be improved.
在一些实施例中,如前述实施例所述,待测图像和目标对象可以根据实际应用进行设置。例如,待测图像可以为医学图像,目标对象可以为病灶,在此情况下,待测图像中可以包括若干医学组织,且若干医学组织包括病灶。基于此,图像显示界面还可以显示有组织列表,且组织列表显示有图像空间内对应的医学组织的标识符。可以基于标识符的选择状态,按照与选择状态匹配的显示策略,在图像显示界面显示与标识符对应的医学组织的图像模型,且选择状态包括表示被选择的第一状态和表示未被选择的第二状态,与第一状态匹配的显示策略和与第二状态匹配的显示策略不同。上述方案,能够根据医学组织是处于被选择的状态还是未被选择的状态,而在图像显示界面采用不同显示策略来显示医学组织,即能够支持用户自主选择医学组织的显示策略,从而能够在图像显示界面展示并区分各个医学组织,进而能够有利于直观并准确地反映医学组织之间的相对位置关系。In some embodiments, as described in the foregoing embodiments, the image to be tested and the target object can be set according to actual applications. For example, the image to be tested may be a medical image, and the target object may be a lesion. In this case, the image to be tested may include several medical tissues, and the several medical tissues include the lesion. Based on this, the image display interface may also display an organization list, and the organization list displays identifiers of corresponding medical organizations in the image space. Based on the selection state of the identifier, the image model of the medical tissue corresponding to the identifier can be displayed on the image display interface according to the display strategy matching the selection state, and the selection state includes the first state representing being selected and the state representing not being selected. In the second state, the display strategy matching the first state is different from the display strategy matching the second state. The above solution can display medical tissues in different display strategies on the image display interface according to whether the medical tissues are in the selected state or not selected state, that is, it can support the user to independently select the display strategy of the medical tissues, so that the images can be The display interface displays and distinguishes various medical tissues, which is conducive to intuitively and accurately reflecting the relative positional relationship between the medical tissues.
在一个实施场景中,标识符可以包括但不限于:医学组织的名称、代号、编号等,在此不做限定。请结合参阅图5,图5是本申请实施例提供的图像显示界面的又一个示意图,如图5所示,组织列表501和医学组织均可以在图像显示界面进行显示,以医学图像是腹部的扫描图像为例,组织列表501可以显示有腹部内各个医学组织的标识符:“肝静脉”、“肝门静脉”、“下腔静脉”、“腹部动脉”、“胆管”、“左肝”、“右肝”以及肝脏的流域分段等等。在医学图像是其他部位的扫描图像时,可以以此类推,在此不再一一举例。In an implementation scenario, the identifier may include but not limited to: the name, code, serial number, etc. of the medical organization, which are not limited here. Please refer to FIG. 5 in conjunction with FIG. 5. FIG. 5 is another schematic diagram of the image display interface provided by the embodiment of the present application. As shown in FIG. Taking a scanned image as an example, the tissue list 501 may display identifiers of various medical tissues in the abdomen: "hepatic vein", "hepatic portal vein", "inferior vena cava", "abdominal artery", "biliary duct", "left liver", "Right liver" and the watershed segmentation of the liver, etc. When the medical image is a scanned image of other parts, it can be deduced by analogy, and no more examples will be given here.
在一个实施场景中,请继续结合参阅图5,在标识符前复选框被勾选的情况下,可以表示标识符对应的医学组织处于被选择的第一状态,而在标识符前复选框未被勾选的情况下,可以表示标识符对应的医学组织处于未被选择的第二状态。此外,与第一状态匹配的显示策略可以包括但不限于:显示等,而与第二状态匹配的显示策略可以包括但不限于:隐藏等;或者,与第一状态匹配的显示策略可以包括但不限于:以突出显示方式显示等,而与第二状态匹配的显示策略可以包括但不限于:以常规显示方式显示等,具体可以参阅下述相关描述。In an implementation scenario, please continue to refer to Figure 5. When the check box in front of the identifier is checked, it can indicate that the medical organization corresponding to the identifier is in the first state of being selected, and check in front of the identifier If the box is not checked, it may indicate that the medical organization corresponding to the identifier is in the second state of being unselected. In addition, the display strategy matching the first state may include but not limited to: display, etc., and the display strategy matching the second state may include but not limited to: hiding, etc.; or, the display strategy matching the first state may include but It is not limited to: displaying in a highlighted manner, etc., and the display strategy matching the second state may include but not limited to: displaying in a normal display manner, for details, please refer to the following related descriptions.
在一个实施场景中,图像显示界面包括第一显示区域502和第二显示区域503中的至少一项,第一显示区域502用于显示医学组织的图像模型,第二显示区域503用于显示若干预设方位上的二维图像。需要说明的是,若干预设方位具体可以包括但不限于:横状、冠状、矢状等,在此不做限定;此外,二维图像具体可以是多平面重建图(Multi-Planner Reformation,MPR)。多平面重建图是从原始的横轴位图像经后处理获得人体组织器官任意方位(如,前述横状、冠状、矢状以及斜面)的二维图像,后处理的具体过程,可以参阅MPR相关技术细节。以若干预设方位包括横状、冠状和矢状为例,如图5所示,第一显示区域502可以显示医学组织的图像模型,而第二显示区域503可以分别显示横状多平面重建图504、冠状多平面重建图505和矢状多平面重建图506,即第一显示区域502能够以三维角度展示医学组织,而第二显示区域503能够以二维角度展示医学组织,故能够在图像显示界面同时以不同维度来展示医学组织,有利于提升图像显示界面所展示的图像信息的丰富程度。In one implementation scenario, the image display interface includes at least one of a first display area 502 and a second display area 503, the first display area 502 is used to display an image model of medical tissue, and the second display area 503 is used to display several 2D image at preset orientation. It should be noted that several preset orientations may specifically include but not limited to: transverse, coronal, sagittal, etc., which are not limited here; in addition, the two-dimensional image may specifically be a multi-planar reconstruction map (Multi-Planner Reformation, MPR ). The multi-planar reconstruction image is to obtain two-dimensional images of human tissues and organs in any orientation (such as the aforementioned transverse, coronal, sagittal, and oblique) from the original transverse axial image after post-processing. For the specific process of post-processing, please refer to MPR-related technical details. Taking several preset orientations including transverse, coronal and sagittal as examples, as shown in Figure 5, the first display area 502 can display the image model of the medical tissue, and the second display area 503 can respectively display the transverse multi-planar reconstruction 504. The coronal multi-plane reconstruction diagram 505 and the sagittal multi-plane reconstruction diagram 506, that is, the first display area 502 can display the medical tissue in a three-dimensional angle, and the second display area 503 can display the medical tissue in a two-dimensional angle, so it can be displayed in the image The display interface displays medical tissues in different dimensions at the same time, which is conducive to improving the richness of image information displayed on the image display interface.
在一个实施场景中,图像显示界面包括第一显示区域502,则在标识符的选择状态为第一状态的情况下,可以显示标识符对应的医学组织的图像模型,而在标识符的选择状态为第二状态的情况下,可以隐藏标识符对应的医学组织的图像模型。此外,在显示标识符对应的医学组织的图像模型的情况下,可以进一步以预设方式显示标识符对应的医学组织的图像模型。预设方式可以包括但不限于:边缘加粗、高亮显示等。上述方式,能够支持用户自定义选择在第一显示区域502需要突显的医学组织,有利于支持用户着重观察突显的医学组织,而通过隐藏处于第二状态的医学组织,能够在用户着重观察突显的医学组织时排除其他医学组织的干扰,有利于提升用户体验。In one implementation scenario, the image display interface includes a first display area 502, and when the selected state of the identifier is the first state, the image model of the medical tissue corresponding to the identifier can be displayed, and in the selected state of the identifier In the case of the second state, the image model of the medical tissue corresponding to the identifier may be hidden. In addition, in the case of displaying the image model of the medical tissue corresponding to the identifier, the image model of the medical tissue corresponding to the identifier may be further displayed in a preset manner. The preset methods may include, but are not limited to: thickening of edges, highlighting, and the like. The above method can support user-defined selection of the medical tissue that needs to be highlighted in the first display area 502, which is beneficial to support the user to focus on observing the highlighted medical tissue, and by hiding the medical tissue in the second state, it is possible for the user to focus on observing the highlighted medical tissue. The medical organization excludes the interference of other medical organizations, which is conducive to improving the user experience.
在一个实施场景中,图像显示界面包括第二显示区域503,则在标识符的选择状态为第一状态的情况下,可以以突出显示方式显示二维图像中标识符对应的医学组织,而在标识符的选择状态为第二状态的情况下,可以以常规显示方式显示二维图像中标识符对应的医学组织。例如,突出显示方式可以包括但不限于:边缘加粗、高亮显示等,而常规显示方式可以包括多平面重建图原本的显示方式,如:多平面重建图默认的灰度图,在此不做限定。上述方式,能够在第二显示区域503根据医学组织是否被用户选择,而以突出显示方式或常规显示方式显示医学组织,即能够支持用户自定义选择在第二显示区域503需要突显的医学组织,有利于支持用户着重观察突显的医学组织,而通过以常规显示方式来显示处于第二状态的医学组织,能够在用户着重观察突显的医学组织时排除其他医学组织的干扰,有利于提升用户体验。In one implementation scenario, the image display interface includes a second display area 503, and when the selection state of the identifier is the first state, the medical tissue corresponding to the identifier in the two-dimensional image can be displayed in a highlighted manner, and in the When the selection state of the identifier is the second state, the medical tissue corresponding to the identifier in the two-dimensional image may be displayed in a conventional display manner. For example, the highlighting method may include but not limited to: thicken the edge, highlight, etc., and the normal display method may include the original display method of the multi-plane reconstruction map, such as: the default grayscale image of the multi-plane reconstruction map, which is not mentioned here. Do limited. In the above manner, the medical tissue can be displayed in a highlighted display mode or a normal display mode in the second display area 503 according to whether the medical tissue is selected by the user, that is, it can support user-defined selection of the medical tissue that needs to be highlighted in the second display area 503, It is beneficial to support the user to focus on observing the prominent medical tissue, and by displaying the medical tissue in the second state in a conventional display manner, the interference of other medical tissues can be excluded when the user focuses on the prominent medical tissue, which is beneficial to improving user experience.
在一个实施场景中,图像显示界面包括第一显示区域502和第二显示区域503,则在标识符的选择状态为第一状态的情况下,可以在第一显示区域502显示标识符对应的医学组织的图像模型,并在第二显示区域503以突出显示方式显示二维图像中标识符对应的医学组织;而在标识符的选择状态为第二状态的情况下,可以在第一显示区域502隐藏标识符对应的医学组织的图像模型,并在第二显示区域503以常规显示方式显示二维图像中标识符对应的医学组织。具体可以参阅前述相关描述。上述方式,不仅能够在图像显示界面同时以不同维度来展示医学组织,有利于提升图像显示界面所展示的图像信息的丰富程度,还能够在第一显示区域502和第二显示区域503关联显示用户期望突显的医学组织,使用户得以在三维和二维两种不同角度直观地联立对应的医学组织,提升用户体验。In one implementation scenario, the image display interface includes a first display area 502 and a second display area 503, and when the selection state of the identifier is the first state, the first display area 502 may display the medical information corresponding to the identifier. tissue image model, and display the medical tissue corresponding to the identifier in the two-dimensional image in a highlighted manner in the second display area 503; The image model of the medical tissue corresponding to the identifier is hidden, and the medical tissue corresponding to the identifier in the two-dimensional image is displayed in a conventional display manner in the second display area 503 . For details, refer to the related description above. The above method can not only display medical tissues in different dimensions on the image display interface at the same time, which is conducive to improving the richness of image information displayed on the image display interface, but also can display user It is expected that the prominent medical tissue will allow users to intuitively connect the corresponding medical tissue in two different angles, three-dimensional and two-dimensional, to improve user experience.
在一个实施场景中,请继续结合参阅图5,在手术规划等应用场景中,组织列表可以包括若干医学组织的标识符,且若干医学组织可以包括病灶。在此基础上,用户可以勾选医学组织“病灶”的标识符和感兴趣的其他医学组织的标识符,从而可以在图像显示界面的第一显示区域502显示医学组织“病灶”和其他医学组织的图像模型,并在第一显示区域502隐藏未勾选的标识符对应的医学组织的图像模型,与此同时,可以进一步在第二显示区域503的多平面重建图上以突出显示方式显示医学组织“病灶”和其他医学组织,并在第二显示区域503的多平面重建图上以常规显示方式显示未勾选的标识符对应的医学组织。在此基础上,用户可以方便且直观地了解医学组织“病灶”与感兴趣的其他医学组织之间的相对位置关系。其他情况可以以此类推,在此不再一一举例。In an implementation scenario, please continue to refer to FIG. 5 , in application scenarios such as operation planning, the organization list may include identifiers of several medical organizations, and the several medical organizations may include lesions. On this basis, the user can check the identifier of the medical tissue "focus" and the identifiers of other medical tissues of interest, so that the medical tissue "focus" and other medical tissues can be displayed in the first display area 502 of the image display interface , and hide the image models of medical tissues corresponding to the unchecked identifiers in the first display area 502. Organize "focuses" and other medical tissues, and display medical tissues corresponding to unchecked identifiers in a conventional display manner on the multi-planar reconstruction map in the second display area 503 . On this basis, the user can conveniently and intuitively understand the relative positional relationship between the medical tissue "lesion" and other medical tissues of interest. Other situations can be deduced by analogy, and no more examples will be given here.
在一些实施例中,如前述实施例所述,待测图像和目标对象可以根据实际应用进行设置。例如,待测图像可以为医学图像,目标对象可以为病灶,而在现实场景中,往往会扫描得到多张医学图像。例如,在对肝脏进行增强扫描过程中,可以得到包括但不限于:门脉期图像、动脉期图像等多张医学图像,其他情况可以以此类推,在此不再一一举例。例如,多张医学图像可以包括第一图像和至少一个第二图像。需要说明的是,“第一”、“第二”在此可以用于在命名上区分医学图像,并不因此而表示扫描先后顺序,抑或重要程度等。例如,不同医学图像对于各个医学组织的显示清晰与否可以各有侧重。仍以多个医学图像是对“肝脏”扫描得到的多期相图像为例,通常来说,门脉期图像可 以清晰显示病灶、肝门静脉与肝静脉,但肝动脉并不明显,而动脉期图像可以清晰显示肝动脉,但病灶、肝门静脉和肝静脉并不明显。其他情况可以以此类推,在此不再一一举例。在此基础上,可以识别第一图像中第一医学组织的第一组织区域,并分别识别至少一个第二图像中第二医学组织的第二组织区域,以及将第二组织区域投影至第一图像的图像空间,且第一医学组织的第一组织区域均位于图像空间中,在此基础上,可以基于图像空间中各个医学组织的组织区域进行三维建模,得到医学组织的图像模型,且医学组织包括第一医学组织和第二医学组织。需要说明的是,第一图像的图像空间可以视为第一图像所在的坐标空间,图像空间的维数具体可以根据医学图像的维数来确定。例如,对于医学图像是三维体数据的情况,第一图像可以视为一个形状为长方体的体数据,在此基础上,可以将长方体其中一个顶点作为坐标空间的原点,并基于该顶点所在的边,建立坐标空间的坐标轴,从而建立得到第一图像的图像空间。其他情况可以以此类推,在此不再一一举例;此外,三维建模的具体过程,可以参阅前述申请实施例中相关描述。上述方式,由于通过投影能够使得多张医学图像中医学组织融合至相同图像空间中,并在图像显示界面显示图像空间内对应的医学组织,故可直接在图像显示界面直观地展示医学组织之间的相对位置关系,有利于提高阅片效率。In some embodiments, as described in the foregoing embodiments, the image to be tested and the target object can be set according to actual applications. For example, the image to be tested can be a medical image, and the target object can be a lesion, but in a real scene, multiple medical images are often scanned. For example, during the enhanced scanning of the liver, multiple medical images including but not limited to portal venous images, arterial images, etc. can be obtained, and other cases can be deduced by analogy, which will not be exemplified here. For example, the plurality of medical images may include a first image and at least one second image. It should be noted that "first" and "second" can be used to distinguish medical images in terms of nomenclature, and do not mean the order of scanning or the degree of importance. For example, different medical images may have different emphases on whether the display of each medical tissue is clear or not. Still taking multiple medical images as an example of multi-phase images obtained by scanning the "liver". Generally speaking, images in the portal venous phase can clearly display the lesion, hepatic portal vein and hepatic vein, but the hepatic artery is not obvious, while the image in the arterial phase The image can clearly show the hepatic artery, but the lesion, hepatic portal vein and hepatic vein are not obvious. Other situations can be deduced by analogy, and no more examples will be given here. Based on this, it is possible to identify a first tissue region of a first medical tissue in a first image, respectively identify a second tissue region of a second medical tissue in at least one second image, and project the second tissue region onto the first The image space of the image, and the first tissue regions of the first medical tissue are located in the image space, on this basis, three-dimensional modeling can be performed based on the tissue regions of each medical tissue in the image space to obtain the image model of the medical tissue, and Medical organizations include a first medical organization and a second medical organization. It should be noted that the image space of the first image can be regarded as the coordinate space where the first image is located, and the dimension of the image space can be specifically determined according to the dimension of the medical image. For example, when the medical image is a three-dimensional volume data, the first image can be regarded as a volume data shaped as a cuboid. On this basis, one of the vertices of the cuboid can be used as the origin of the coordinate space, and based on the edge where the vertex is located , to establish the coordinate axes of the coordinate space, thereby establishing the image space for obtaining the first image. Other situations can be deduced by analogy, and no more examples will be given here; in addition, for the specific process of three-dimensional modeling, please refer to the relevant descriptions in the foregoing application embodiments. In the above method, since the medical tissues in multiple medical images can be fused into the same image space through projection, and the corresponding medical tissues in the image space are displayed on the image display interface, the relationship between medical tissues can be directly displayed directly on the image display interface. The relative positional relationship is conducive to improving the efficiency of image reading.
在一个实施场景中,为了提高识别效率,可以预先训练一个第一区域识别网络和一个第二区域识别网络,在此基础上,可以利用第一区域识别网络对第一图像进行识别,得到第一医学组织的第一组织区域,并利用第二区域识别网络对第二图像进行识别,得到第二医学组织的第二组织区域。例如,第一区域识别网络可以包括但不限于:R-CNN、FCN等等,在此不做限定。类似地,第二区域识别网络可以包括但不限于:R-CNN、FCN等等,在此不做限定。In an implementation scenario, in order to improve the recognition efficiency, a first region recognition network and a second region recognition network can be pre-trained, on this basis, the first region recognition network can be used to recognize the first image, and the first The first tissue area of the medical tissue is identified, and the second image is identified by using the second area identification network to obtain the second tissue area of the second medical tissue. For example, the first area recognition network may include but not limited to: R-CNN, FCN, etc., which is not limited here. Similarly, the second area recognition network may include but not limited to: R-CNN, FCN, etc., which is not limited here.
在一个实施场景中,以第一图像是前述门脉期图像为例,在训练第一区域识别网络之前,可以预先收集门脉期图像的样本图像,且样本图像标注有各个像素点所属的样本类别(如,某一像素点标注为其属于肝门静脉,另一像素点标注为其属于肝静脉,又一像素点标注为其属于病灶),再利用第一区域识别网络对样本图像进行识别,得到样本图像中各个像素点分别所属的预测类别,最终可以利用样本类别与预测类别之间差异,调整第一区域识别网络的网络参数,以使第一区域识别网络在训练过程中分别学习到肝门静脉、肝静脉和病灶的图像特征。基于此,可以利用训练收敛的第一区域识别网络对第一图像进行识别,得到第一图像中各个像素点所属的像素类别,并将属于肝门静脉的像素点所形成的连通域作为肝门静脉的第一组织区域,将属于肝静脉的像素点所形成的连通域作为肝静脉的第一组织区域,将属于病灶的像素点所形成的连通域作为病灶的第一组织区域。其他情况可以以此类推,在此不再一一举例。In an implementation scenario, taking the first image as the aforementioned portal phase image as an example, before training the first region recognition network, sample images of portal phase images can be collected in advance, and the sample images are marked with the samples to which each pixel belongs category (for example, a certain pixel is marked as belonging to the hepatic portal vein, another pixel is marked as belonging to the hepatic vein, and another pixel is marked as belonging to the lesion), and then the sample image is identified by using the first region recognition network, The predicted category of each pixel in the sample image is obtained, and finally the difference between the sample category and the predicted category can be used to adjust the network parameters of the first region recognition network, so that the first region recognition network learns the liver respectively during the training process. Image features of portal vein, hepatic vein, and lesion. Based on this, the first image can be identified by using the first region recognition network that has been trained and converged to obtain the pixel category to which each pixel in the first image belongs, and the connected domain formed by the pixels belonging to the hepatic portal vein can be used as the hepatic portal vein. For the first tissue area, the connected domain formed by the pixel points belonging to the hepatic vein is used as the first tissue area of the hepatic vein, and the connected domain formed by the pixel points belonging to the lesion is used as the first tissue area of the lesion. Other situations can be deduced by analogy, and no more examples will be given here.
在一个实施场景中,以第二图像是前述动脉期图像为例,在训练第二区域识别网络之前,可以预先收集动脉期图像的样本图像,且样本图像标注有各个像素点所属的样本类别(如,某一像素点标注为其属于肝动脉),再利用第二区域识别网络对样本图像进行识别,得到样本图像中各个像素点分别所属的预测类别,最终可以利用样本类别与预测类别之间差异,调整第二区域识别网络的网络参数,以使第二区域识别网络在训练过程中学习到肝动脉的图像特征。基于此,可以利用训练收敛的第二区域识别网络对第二图像进行识别,得到第二图像中各个像素点所属的像素类别,并将属于肝动脉的像素点所形成的连通域作为肝动脉的第二组织区域。其他情况可以以此类推,在此不再一一举例。In one implementation scenario, taking the second image as the aforementioned arterial phase image as an example, before training the second region recognition network, a sample image of the arterial phase image can be collected in advance, and the sample image is marked with the sample category to which each pixel belongs ( For example, a certain pixel is marked as belonging to the hepatic artery), and then the second area recognition network is used to identify the sample image to obtain the predicted category to which each pixel in the sample image belongs, and finally the relationship between the sample category and the predicted category can be used The difference is to adjust the network parameters of the second region recognition network, so that the second region recognition network can learn the image features of the hepatic artery during the training process. Based on this, the second image can be identified by using the second region recognition network that has converged in training to obtain the pixel category to which each pixel in the second image belongs, and the connected domain formed by the pixels belonging to the hepatic artery can be used as the hepatic artery. Second organizational area. Other situations can be deduced by analogy, and no more examples will be given here.
在一个实施场景中,为了提高投影的准确性,可以基于第一图像与第二图像之间的配准参数,将第二组织区域投影至图像空间。上述方式,能够提高投影的精确性,从而能够有利于提高图像显示界面所直观展示的医学组织之间相对位置关系的准确性。In an implementation scenario, in order to improve the accuracy of projection, the second tissue region may be projected into the image space based on the registration parameters between the first image and the second image. The above method can improve the accuracy of the projection, thereby being beneficial to improve the accuracy of the relative positional relationship between the medical tissues visually displayed on the image display interface.
在一个实施场景中,可以识别第一图像中目标对象的第一目标区域,并分别识别至少一个第二图像中目标对象的第二目标区域,对于每一第二图像,将第二目标区域与第 一目标区域对齐,得到第二图像与第一图像之间的配准参数。以目标对象包括肝脏且第一图像是门脉期图像、第二图像是动脉期图像为例,可以识别门脉期图像中肝脏的第一目标区域,并识别动脉期图像中肝脏的第二目标区域,通过将第一目标区域和第二目标区域对齐,可以得到门脉期图像和动脉期图像之间的配准参数。其他情况可以以此类推,在此不再一一举例。上述方式,配准参数能够使目标对象在第二图像中的第二目标区域和在第一图像中的第一目标区域对齐,有利于提高配准参数的准确性。In an implementation scenario, the first target area of the target object in the first image may be identified, and the second target area of the target object in at least one second image may be identified respectively, and for each second image, the second target area and the The first target regions are aligned to obtain registration parameters between the second image and the first image. Taking the example where the target object includes the liver and the first image is the portal phase image, and the second image is the arterial phase image, the first target area of the liver in the portal phase image can be identified, and the second target area of the liver in the arterial phase image can be identified region, by aligning the first target region with the second target region, registration parameters between the portal venous phase image and the arterial phase image can be obtained. Other situations can be deduced by analogy, and no more examples will be given here. In the manner described above, the registration parameters can align the second target area of the target object in the second image with the first target area in the first image, which is beneficial to improve the accuracy of the registration parameters.
在一个实施场景中,在上述对齐过程中,第二目标区域需要经过旋转、偏移等刚体变换以及形变等非刚体变换才能与第一目标区域对齐,且上述配准参数具体可以包括一个刚体配准矩阵和一个偏移场,在此基础上,可以先利用刚体配准矩阵将第二组织区域投影至图像空间,再利用偏移场对图像空间内的第二组织区域进行形变偏移;或者,在上述对齐过程中,第二目标区域仅需经过旋转、偏移等刚体变换即可与第二目标区域对齐,且上述配准参数具体可以包括一个刚体配准矩阵,在此基础上,可以直接利用刚体配准矩阵将第二组织区域投影至图像空间。In an implementation scenario, in the above alignment process, the second target area needs to undergo rigid body transformations such as rotation and offset and non-rigid body transformations such as deformation to be aligned with the first target area, and the above registration parameters may specifically include a rigid body registration A quasi-matrix and an offset field, on this basis, the rigid body registration matrix can be used to project the second tissue region into the image space, and then the offset field can be used to deform the second tissue region in the image space; or , in the above alignment process, the second target area can be aligned with the second target area only through rigid body transformations such as rotation and offset, and the above registration parameters can specifically include a rigid body registration matrix. On this basis, you can The second tissue region is projected into image space directly using the rigid body registration matrix.
在一个实施场景中,请参阅图3或图4,在多张医学图像包括门脉期图像和动脉期图像的情况下,经上述识别、投影、建模之后,在图像显示界面中可以将肝门静脉、肝静脉肝动脉和病灶同时显示,以便医生直观了解病灶与肝门静脉、肝静脉和肝动脉之间的相对位置关系。In an implementation scenario, please refer to Fig. 3 or Fig. 4. In the case of multiple medical images including portal venous images and arterial images, after the above identification, projection, and modeling, the liver can be displayed on the image display interface. The portal vein, hepatic vein, hepatic artery, and lesion are simultaneously displayed, so that doctors can intuitively understand the relative positional relationship between the lesion and the hepatic portal vein, hepatic vein, and hepatic artery.
在一些实施例中,如前述实施例所述,待测图像和目标对象可以根据实际应用进行设置。例如,待测图像可以为医学图像,目标对象可以为诸如肝脏、肺部等目标器官上的病灶,待测图像中医学组织可以包括病灶。为了在手术规划等应用过程中给予充分参考,可以识别目标器官的目标血管,并基于目标器官的目标血管,利用流域算法将目标器官划分为若干流域分段。从而医学组织进一步可以包括上述流域分段,即医学图像中有的医学组织是病灶,而有的医学组织是目标器官的流域分段。需要说明的是,本申请实施例中,除了病灶和流域分段两种医学组织,并不排除医学图像中还包括其他种类的医学组织,如还可以包括其他器官,在此不做限定。在此基础上,可以基于医学组织的渲染参数,显示医学组织的三维模型,且不同医学组织的渲染参数不完全相同。三维模型的获取过程,可以参阅前述申请实施例中相关描述。上述方式,基于目标器官的目标血管,利用流域算法将目标器官划分为若干流域分段,并基于医学组织的渲染参数,显示医学组织的三维模型,且医学组织包括流域分段以及病灶,不同医学组织的渲染不完全相同,故一方面能够直观展示并区分不同医学组织,另一方面也能够直观展示病灶如何侵犯各个流域分段,以供医生在诸如手术规划等应用过程中提供充分参考,有利于提升用户体验。In some embodiments, as described in the foregoing embodiments, the image to be tested and the target object may be set according to actual applications. For example, the image to be tested may be a medical image, the target object may be a lesion on a target organ such as liver or lung, and the medical tissue in the image to be tested may include a lesion. In order to give sufficient reference in the application process such as surgical planning, the target blood vessels of the target organ can be identified, and based on the target blood vessels of the target organ, the target organ can be divided into several watershed segments by using the watershed algorithm. Therefore, the medical tissues may further include the above-mentioned watershed segments, that is, some medical tissues in the medical image are lesions, and some medical tissues are watershed segments of target organs. It should be noted that, in the embodiment of the present application, in addition to the two medical tissues of the lesion and the watershed segment, it does not exclude that the medical image also includes other types of medical tissues, such as other organs, which are not limited here. On this basis, the three-dimensional model of the medical tissue can be displayed based on the rendering parameters of the medical tissue, and the rendering parameters of different medical tissues are not completely the same. For the acquisition process of the 3D model, please refer to the relevant description in the foregoing application embodiments. In the above method, based on the target blood vessels of the target organ, the target organ is divided into several watershed segments by using the watershed algorithm, and based on the rendering parameters of the medical tissue, the three-dimensional model of the medical tissue is displayed, and the medical tissue includes the watershed segment and the lesion. The rendering of the tissue is not exactly the same, so on the one hand, it can visually display and distinguish different medical tissues, and on the other hand, it can also visually show how the lesion invades each watershed segment, so as to provide sufficient reference for doctors in the application process such as surgical planning. Help to improve user experience.
在一个实施场景中,流域算法可以包含两类,一类是基于溢流过程的流域算法,其直观思想来源于地形学,另一类是将像素和集水域相关,计算他们到极小值处的最短拓扑距离。流域算法的具体过程,可以参阅流域算法的具体技术细节。In an implementation scenario, the watershed algorithm can include two types, one is the watershed algorithm based on the overflow process, and its intuitive idea comes from topography, and the other is to correlate the pixels with the catchment area and calculate them to the minimum value The shortest topological distance of . For the specific process of the watershed algorithm, please refer to the specific technical details of the watershed algorithm.
在一个实施场景中,以目标器官包括肝脏为例,目标血管包括肝门静脉,在此基础上,基于肝门静脉进行流域分割可以得到如下流域分段:尾状叶、左外叶上段、左外叶下段、左内叶、右前叶下段、右前叶上段、右后叶下段、右后叶上段。其他情况可以以此类推,在此不再一一举例。In an implementation scenario, taking the target organ including the liver as an example, and the target blood vessel including the hepatic portal vein, on this basis, the following watershed segmentation can be obtained based on the hepatic portal vein: caudate lobe, upper part of the left outer lobe, left outer lobe Lower segment, left inner lobe, lower right anterior lobe, upper right anterior lobe, lower right posterior lobe, upper right posterior lobe. Other situations can be deduced by analogy, and no more examples will be given here.
在一个实施场景中,可以检测病灶对标的组织的侵犯数据,且标的组织可以包括目标血管、流域分段中的至少一者,并基于侵犯数据,输出预警提示。例如,侵犯数据可以包括病灶的体积、病灶的表面积、病灶的长径、病灶的短径中至少一者,需要说明的是,病灶的长径表示病灶最长处的直径,病灶的短径表示病灶最短处的直径。此外,更在一些实施例中,体积可以表示病灶与标的组织的相交部分的体积,表面积表示病灶与标的组织的相交部分的表面积,长径表示病灶与标的组织的相交部分在最长处的直径, 短径表示病灶与标的组织的相交部分在最短处的直径。或者,为了简化统计,侵犯数据可以包括病灶与标的组织的相交部分占标的组织的比例。仍以肝脏为例,示例性地,病灶与尾状叶的相交部分占尾状叶的比例为1%,病灶与左外叶上段的相交部分占左外叶上段的5%,在此不再一一举例。基于上述侵犯数据,可以评估病灶的恶性程度,例如,体积越大,恶性程度越高;或者,表面积越大,恶性程度越高,以此类推,在此不再一一举例。在此基础上,可以基于恶性程度,输出相应等级的预警提示。例如,恶性程度越高,输出的预警提示等级也越高。例如,对于高等级的预警提示而言,可以采用“深红色”、“加粗”等醒目方式予以提示,而对于低等级的预警提示而言,可以采用“浅红色”等方式予以提示,在此不做限定。上述方式,检测病灶对标的组织的侵犯数据,并基于侵犯数据输出预警提示,能够实现病灶侵犯的自动检测,有利于提高用户体验,而进一步地基于侵犯数据,获取病灶的恶性程度,并基于恶性程度,输出相应等级的预警提示,能够有利于使用户更为直观、快捷地了解病灶的恶性程度,有利于进一步提升用户体验。In an implementation scenario, data of invasion of the target tissue by the lesion may be detected, and the target tissue may include at least one of target blood vessels and watershed segments, and an early warning prompt may be output based on the invasion data. For example, the invasion data may include at least one of the volume of the lesion, the surface area of the lesion, the long diameter of the lesion, and the short diameter of the lesion. It should be noted that the long diameter of the lesion represents the diameter of the longest point of the lesion, and the short diameter of the lesion represents the The diameter at the shortest point. In addition, in some embodiments, the volume may represent the volume of the intersecting portion of the lesion and the target tissue, the surface area may represent the surface area of the intersecting portion of the lesion and the target tissue, and the long diameter may represent the longest diameter of the intersecting portion of the lesion and the target tissue, The short axis represents the diameter of the shortest point where the lesion intersects with the target tissue. Or, to simplify the statistics, the invasion data may include the proportion of the intersecting part of the lesion and the target tissue in the target tissue. Still taking the liver as an example, for example, the intersecting part of the lesion and the caudate lobe accounts for 1% of the caudate lobe, and the intersecting part of the lesion and the upper segment of the left outer lobe accounts for 5% of the upper segment of the left outer lobe. Give examples. Based on the invasion data above, the malignancy of the lesion can be evaluated, for example, the larger the volume, the higher the malignancy; or the larger the surface area, the higher the malignancy, and so on, and no more examples will be given here. On this basis, based on the degree of malignancy, an early warning prompt of a corresponding level can be output. For example, the higher the degree of malignancy, the higher the output warning level. For example, for high-level early warning prompts, eye-catching methods such as "dark red" and "bold" can be used to prompt, while for low-level early warning prompts, "light red" and other methods can be used to prompt. This is not limited. The above method detects the violation data of the lesion against the target tissue, and outputs an early warning based on the violation data, which can realize the automatic detection of the lesion violation, which is conducive to improving the user experience, and further based on the violation data, the malignancy of the lesion is obtained, and based on the malignancy Outputting the corresponding level of early warning prompts can help users understand the malignancy of the lesion more intuitively and quickly, and is conducive to further improving user experience.
在一个实施场景中,如前所述,还可以显示组织列表,且组织列表包括若干医学组织的标识符,若干医学组织可以进一步包括前述病灶和流域分段,在此基础上,可以响应于用户在组织列表中对标识符的选中指令,将被选中的标识符对应的医学组织作为第一目标组织,并以预设方式在图像显示界面突显第一目标组织,在一些实施例中,可以将未被选中的标识符对应的医学组织作为第二目标组织,并在图像显示界面隐藏第二目标组织。上述方式,能够支持用户自定义选择期望在图像显示界面突显的流域分段,有利于支持用户着重观察突显的流域分段,并排除其他流域分段的干扰,有利于提升用户体验。In one implementation scenario, as mentioned above, the organization list can also be displayed, and the organization list includes identifiers of several medical organizations, and the several medical organizations can further include the aforementioned lesion and watershed segmentation. On this basis, it is possible to respond to user In order to select an identifier in the organization list, the medical organization corresponding to the selected identifier is used as the first target organization, and the first target organization is highlighted on the image display interface in a preset manner. In some embodiments, the The medical tissue corresponding to the unselected identifier is used as the second target tissue, and the second target tissue is hidden on the image display interface. The above method can support user-defined selection of watershed segments that are expected to be highlighted on the image display interface, which is conducive to supporting users to focus on the highlighted watershed segments, and eliminating interference from other watershed segments, which is conducive to improving user experience.
在一个实施场景中,如前所述,图像显示界面包括第一显示区域和第二显示区域,第一显示区域用于显示医学组织的三维模型,第二显示区域用于显示若干预设方位上的多平面重建图,且所显示的组织列表包括若干医学组织的标识符,若干医学组织可以进一步包括前述病灶和流域分段,则可以响应于用户在组织列表中对标识符的选中指令,将被选中的标识符对应的医学组织作为第一目标组织,并以第一突显方式在第一显示区域突显第一目标组织,以及以第二突显方式在第二显示区域突显第一目标组织,在一些实施例中,可以将未被选中的标识符对应的医学组织作为第二目标组织,并在第一显示区域隐藏第二目标组织,以及以常规显示方式在第二显示区域显示第二目标组织。上述方式,不仅能够在图像显示界面同时以不同维度来展示流域分段,有利于提升图像显示界面所展示的图像信息的丰富程度,还能够在第一显示区域和第二显示区域关联显示用户期望突显的流域分段,使用户得以在三维和二维两种不同角度直观地联立对应的流域分段,提升用户体验。In one implementation scenario, as mentioned above, the image display interface includes a first display area and a second display area, the first display area is used to display the three-dimensional model of medical tissue, and the second display area is used to display , and the displayed tissue list includes the identifiers of several medical organizations, and the several medical organizations may further include the aforementioned lesion and watershed segmentation, then in response to the user's selection instruction for the identifier in the tissue list, the The medical organization corresponding to the selected identifier is used as the first target tissue, and the first target tissue is highlighted in the first display area in the first highlighting manner, and the first target tissue is highlighted in the second display area in the second highlighting manner. In some embodiments, the medical tissue corresponding to the unselected identifier can be used as the second target tissue, and the second target tissue is hidden in the first display area, and the second target tissue is displayed in the second display area in a conventional display manner . The above method can not only display watershed segments in different dimensions on the image display interface at the same time, which is conducive to improving the richness of image information displayed on the image display interface, but also can display user expectations in the first display area and the second display area. The prominent watershed segmentation enables users to visually connect the corresponding watershed segments in two different angles, 3D and 2D, to enhance user experience.
本申请实施例的图像处理方法可以应用于计算机辅助手术规划场景,计算机辅助手术规划的方案是:对人体影像数据进行影像学分析,分割重要脏器、血管以及病灶,并对各个分割结果进行可视化重建,进而制定详细精准的手术计划。计算机辅助手术规划分为术前规划、术中定位导航、术后评估三大部分;其中,术前规划包含了对病灶的切除或灭活区域规划和术前评估;为了预防病灶切除或灭活的愈后复发,临床上真正目标区域引入了安全距离,即在不危及重要脏器和关键血管前提下,同时切除或灭活病灶安全距离内的组织,以达到彻底灭杀病灶的效果。因此,病灶外扩区域以及危及器官检测在术前规划乃至术中导航告警时都至关重要,对其检测结果的实时性和准确性都要求较高。The image processing method of the embodiment of the present application can be applied to the scene of computer-aided surgery planning. The scheme of computer-aided surgery planning is: perform imaging analysis on human body image data, segment important organs, blood vessels, and lesions, and visualize each segmentation result Reconstruction, and then develop a detailed and precise surgical plan. Computer-aided surgical planning is divided into three parts: preoperative planning, intraoperative positioning and navigation, and postoperative evaluation; among them, preoperative planning includes the resection or inactivation area planning and preoperative evaluation of lesions; in order to prevent lesion resection or inactivation In clinical practice, a safe distance is introduced into the real target area, that is, the tissues within the safe distance of the lesion are resected or inactivated at the same time without endangering important organs and key blood vessels, so as to achieve the effect of completely killing the lesion. Therefore, the detection of lesion extension area and organ-at-risk is very important in preoperative planning and even in intraoperative navigation and warning, and the real-time and accuracy of the detection results are required to be high.
相关技术中,针对计算机辅助手术规划的方案中的病灶外扩区域以及危及器官检测,如何提高检测结果的实时性和准确性,是亟待解决的技术问题。针对该技术问题,采用本申请实施例的图像处理方法,可以确定病灶外扩区域和对标的组织的侵犯数据,下面通过一个实施场景进行说明。In related technologies, how to improve the timeliness and accuracy of the detection results for the detection of lesion extension area and endangered organs in the scheme of computer-aided surgery planning is an urgent technical problem to be solved. In view of this technical problem, using the image processing method of the embodiment of the present application, the lesion expansion area and the invasion data of the target tissue can be determined. An implementation scenario will be used to illustrate below.
在一个实施场景中,待测图像为医学图像,目标对象为病灶,标的组织为器官。本申请实施例中,可以对第一像素点、第二像素点和第三像素点进行初始化处理,示例性地,获取医学图像中病灶所在的原始区域,原始区域内的像素点为第一像素点,还可以检测各个第一像素点分别对标的组织的侵犯数据,并记录该侵犯数据,第一像素点的第一标识符为自然数。对于原始区域外的像素点,在确定该像素点的3x3x3邻域包含第一像素点,则确定该原始区域外的像素点为第二像素点,第二像素点的第二标识符为负数。将医学图像中除第一像素点和第二像素点之外的像素点作为第三像素点,第三像素点的第三标识符为负数,且与第二标识符不相同。In an implementation scenario, the image to be tested is a medical image, the target object is a lesion, and the target tissue is an organ. In the embodiment of the present application, the first pixel, the second pixel, and the third pixel can be initialized. For example, the original area where the lesion is located in the medical image is obtained, and the pixels in the original area are the first pixels. It is also possible to detect the violation data of each first pixel point on the target tissue and record the violation data, and the first identifier of the first pixel point is a natural number. For the pixels outside the original area, if it is determined that the 3x3x3 neighborhood of the pixel contains the first pixel, then it is determined that the pixels outside the original area are the second pixels, and the second identifier of the second pixels is a negative number. A pixel in the medical image other than the first pixel and the second pixel is used as a third pixel, and the third identifier of the third pixel is a negative number and is different from the second identifier.
在对第一像素点、第二像素点和第三像素点进行初始化处理后,可以基于医学图像中的体素坐标,并采用前述实施例的图像处理方法确定出第二参考区域内第二像素点与各个第一像素点的物理距离,第二参考区域为第二像素点的3x3x3邻域;可以根据第二像素点与各个第一像素点的最小物理距离,确定是否将第二像素点作为新的第一像素点。可以在检测结果包括将第二像素点作为新的第一像素点的情况下,将满足预设条件的第三像素点作为新的第二像素点,并重新执行上述对各个第二像素点并行执行外扩检测,得到检测结果的步骤。在检测到各个第二像素点均已执行外扩检测的情况下,可以获取由原始区域内第一像素点和由第二像素点更新得到的第一像素点所形成的连通域,并将该连通域作为病灶外扩区域。如前所述,第一像素点赋有数值为自然数的第一标识符,第二像素点赋有数值为负数的第二标识符,第三像素点赋有数值为负数的第三标识符,在此基础上,可以将所有数值为自然数的标识符对应的像素点所形成的连通域作为病灶外扩区域。上述方式,区域外扩随着各个第二像素点均已执行外扩检测而结束,并由最终所有第一像素点所形成的连通域作为病灶外扩区域,有利于准确地确定出病灶外扩区域。After initializing the first pixel, the second pixel, and the third pixel, the second pixel in the second reference area can be determined based on the voxel coordinates in the medical image and using the image processing method of the foregoing embodiment The physical distance between the point and each first pixel point, the second reference area is the 3x3x3 neighborhood of the second pixel point; it can be determined whether to use the second pixel point as the minimum physical distance between the second pixel point and each first pixel point The new first pixel. In the case that the detection result includes the second pixel as the new first pixel, the third pixel that meets the preset condition can be used as the new second pixel, and the above-mentioned parallel processing of each second pixel can be performed again. Execute the step of expanding detection to obtain the detection result. In the case that it is detected that each second pixel point has been subjected to extension detection, the connected domain formed by the first pixel point in the original area and the first pixel point updated by the second pixel point can be obtained, and the The connected domain is used as the expansion area of the lesion. As mentioned above, the first pixel is assigned a first identifier whose value is a natural number, the second pixel is assigned a second identifier whose value is a negative number, and the third pixel is assigned a third identifier whose value is a negative number. On this basis Above, the connected domain formed by all the pixels corresponding to the identifier whose value is a natural number can be used as the lesion extension area. In the above method, the area expansion ends when all the second pixels have performed the expansion detection, and finally the connected domain formed by all the first pixels is used as the lesion expansion area, which is beneficial to accurately determine the lesion expansion area. area.
在一个实施场景中,用户加载肝脏CT数据到影像分析软件,在运行影像分析软件的情况下可以在显示界面的病灶列表中会呈现检测出的所有病灶;在用户选中一个病灶,并点击对该病灶区域进行外扩的按钮的情况下,采用本申请实施例的图像处理方法可以计算病灶外扩区域,并可以在窗口中生成相应的可视化渲染效果。In an implementation scenario, the user loads liver CT data to the image analysis software, and all detected lesions can be displayed in the lesion list on the display interface when the image analysis software is running; when the user selects a lesion and clicks on the In the case of a button for expanding the lesion area, the image processing method of the embodiment of the present application can be used to calculate the area of the lesion expanding, and can generate a corresponding visual rendering effect in the window.
采用本公开实施例的图像处理方法,可以满足病灶外扩区域以及危及器官检测的实时性要求,例如,在将GPU的核心作为病灶外扩检测的计算内核的情况下,可以实现病灶外扩区域的毫秒级计算,一定程度上提升了用户体验。The image processing method of the embodiment of the present disclosure can meet the real-time requirements of lesion expansion area and organ-at-risk detection. For example, when the GPU core is used as the calculation kernel of lesion expansion detection, the lesion expansion area can be realized. The millisecond-level calculation improves the user experience to a certain extent.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of specific implementation, the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possible The inner logic is OK.
请参阅图6,本申请实施例提供的图像处理装置的框架示意图。图像处理装置60可以包括原始区域获取模块61、像素外扩检测模块62和外扩区域获取模块63,原始区域获取模块61,配置为获取待测图像中目标对象所在的原始区域,其中,原始区域内包含若干第一像素点,原始区域外存在若干第二像素点;像素外扩检测模块62,配置为对各个第二像素点并行执行外扩检测,得到检测结果,其中,检测结果包括是否将第二像素点作为新的第一像素点;外扩区域获取模块63,配置为基于原始区域和检测结果,得到目标对象的外扩区域。Please refer to FIG. 6 , which is a schematic framework diagram of an image processing device provided by an embodiment of the present application. The image processing device 60 may include an original area acquisition module 61, a pixel extension detection module 62, and an outer expansion area acquisition module 63. The original area acquisition module 61 is configured to acquire the original area where the target object is located in the image to be tested, wherein the original area There are several first pixels inside, and there are several second pixels outside the original area; the pixel expansion detection module 62 is configured to perform an expansion detection on each second pixel in parallel to obtain a detection result, wherein the detection result includes whether the The second pixel point is used as a new first pixel point; the extended area obtaining module 63 is configured to obtain the extended area of the target object based on the original area and the detection result.
上述方案,获取待测图像中目标对象所在的原始区域,且原始区域内包含若干第一像素点,原始区域外存在若干第二像素点,在此基础上,对各个第二像素点并行执行外扩检测,得到检测结果,且检测结果包括是否将第二像素点作为新的第一像素点,从而基于原始区域和检测结果,得到目标对象的外扩区域,一方面由于外扩检测是基于各个第二像素点而执行的,故能够实现像素级的区域外扩,有利于提高区域外扩的精度,另一方面由于外扩检测是并行执行的,故有利于提高区域外扩的速度。故此,能够提高区 域外扩的精度和速度。The above scheme obtains the original area where the target object is located in the image to be tested, and the original area contains a number of first pixels, and there are a number of second pixels outside the original area. On this basis, each second pixel is executed in parallel. Expand the detection to obtain the detection result, and the detection result includes whether to use the second pixel as the new first pixel, so that based on the original area and the detection result, the extended area of the target object is obtained. On the one hand, because the external expansion detection is based on each It is executed on the second pixel, so it can realize pixel-level area expansion, which is beneficial to improve the accuracy of area expansion. On the other hand, because the expansion detection is executed in parallel, it is beneficial to improve the speed of area expansion. Therefore, the accuracy and speed of area expansion can be improved.
在一些实施例中,所述像素外扩检测模块62,配置为采用各个计算内核并行运行的方式,对所述各个所述第二像素点并行执行外扩检测。因此,由各个计算内核并行运行对各个第二像素点所执行的外扩检测,能够进一步提高区域外扩的计算效率。In some embodiments, the pixel extension detection module 62 is configured to perform the extension detection on each of the second pixels in parallel in a manner that each calculation core runs in parallel. Therefore, each computing core runs in parallel the extension detection performed on each second pixel point, which can further improve the calculation efficiency of region extension.
在一些实施例中,各个第二像素点分别所在的第一参考区域均与原始区域存在交集。因此,对于每一第二像素点而言,其所在的第一参考区域均与原始存在交集,故在外扩检测之前,能够排除位于原始区域之外且距原始区域较远的像素点,有利于提高区域外扩速度。In some embodiments, the first reference areas where the second pixel points are respectively located overlap with the original area. Therefore, for each second pixel point, the first reference area where it is located intersects with the original one, so before the extension detection, the pixels located outside the original area and farther away from the original area can be excluded, which is beneficial to Increase the speed of area expansion.
在一些实施例中,像素外扩检测模块62包括参考区域获取子模块,配置为获取包围第二像素点的第二参考区域;像素外扩检测模块62包括物理距离计算子模块,配置为对于第二参考区域内的第二像素点和各个第一像素点,分别获取各个第一像素点至第二像素点的物理距离;像素外扩检测模块62包括检测结果获取子模块,配置为基于物理距离,得到检测结果。因此,获取包围第二像素点的第二参考区域,并基于第二参考区域内第一像素点至第二像素点的物理距离,得到检测结果,能够降低区域外扩超出安全距离的可能性,有利于提升区域外扩的安全性。In some embodiments, the pixel extension detection module 62 includes a reference area acquisition submodule configured to acquire a second reference area surrounding the second pixel point; the pixel extension detection module 62 includes a physical distance calculation submodule configured for the second pixel point The second pixel point and each first pixel point in the reference area obtain the physical distance from each first pixel point to the second pixel point respectively; the pixel expansion detection module 62 includes a detection result acquisition sub-module configured to be based on the physical distance , get the detection result. Therefore, obtaining the second reference area surrounding the second pixel, and obtaining the detection result based on the physical distance from the first pixel to the second pixel in the second reference area, can reduce the possibility of the area expanding beyond the safety distance, It is conducive to improving the security of regional expansion.
在一些实施例中,检测结果获取子模块包括第一确定单元,配置为在最小物理距离低于预设阈值的情况下,确定检测结果包括将第二像素点作为新的第一像素点;检测结果获取子模块包括第二确定单元,配置为在最小物理距离不低于预设阈值的情况下,确定检测结果包括不将第二像素点作为新的第一像素点。因此,在最小物理距离低于预设阈值的情况下,确定检测结果包括将第二像素点作为新的第一像素点,而在最小物理距离不低于预设阈值的情况下,确定检测结果包括不将第二像素点作为新的第一像素点,能够通过约束最小物理距离进一步确保区域外扩不超出安全距离,提升区域外扩的安全性。In some embodiments, the detection result acquisition submodule includes a first determination unit configured to determine the detection result when the minimum physical distance is lower than a preset threshold, including taking the second pixel as a new first pixel; detecting The result acquisition sub-module includes a second determination unit configured to determine that the detection result includes not using the second pixel as a new first pixel when the minimum physical distance is not lower than a preset threshold. Therefore, when the minimum physical distance is lower than the preset threshold, determining the detection result includes taking the second pixel as the new first pixel, and when the minimum physical distance is not lower than the preset threshold, determining the detection result Including not using the second pixel as the new first pixel, it can further ensure that the area expansion does not exceed a safe distance by constraining the minimum physical distance, and improve the safety of the area expansion.
在一些实施例中,原始区域外存在若干第三像素点,且各个第三像素点所在的第一参考区域与原始区域均不存在交集;图像处理装置60还包括重复检测模块,配置为在检测结果包括将第二像素点作为新的第一像素点的情况下,将满足预设条件的第三像素点作为新的第二像素点,并重新执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤;其中,预设条件包括:第三像素点所在的第一参考区域内包含由第二像素点更新得到的第一像素点。In some embodiments, there are several third pixel points outside the original area, and there is no intersection between the first reference area where each third pixel point is located and the original area; the image processing device 60 also includes a duplication detection module configured to detect The result includes taking the second pixel as the new first pixel, taking the third pixel that meets the preset condition as the new second pixel, and re-executing the extension detection for each second pixel in parallel , the step of obtaining the detection result; wherein, the preset condition includes: the first reference area where the third pixel is located contains the first pixel updated by the second pixel.
因此,原始区域外存在若干第三像素点,且各个第三像素点所在的第一参考区域与原始区域均不存在交集,在检测结果包括将第二像素点作为新的第一像素点的情况下,将满足预设条件的第三像素点作为新的第二像素点,并重新执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤,且预设条件包括:第三像素点所在的第一参考区域包含由第二像素点更新得到的第一像素点,即在区域外扩过程中,能够随着第二像素点更新为第一像素点,第三像素点也会根据满足预设条件而作为新的第二像素点,并重新对各个第二像素点执行外扩检测,如此往复能够传递式地进行区域外扩,有利于进一步提高区域外扩的准确性。Therefore, there are several third pixels outside the original area, and there is no intersection between the first reference area where each third pixel is located and the original area, when the detection result includes the second pixel as the new first pixel Next, use the third pixel that satisfies the preset condition as a new second pixel, and re-execute the step of performing the expansion detection on each second pixel in parallel to obtain the detection result, and the preset condition includes: the third pixel The first reference area where the point is located contains the first pixel point updated by the second pixel point, that is, in the process of area expansion, the second pixel point can be updated to the first pixel point, and the third pixel point will also be updated according to Satisfy the preset condition and use it as a new second pixel point, and re-perform the expansion detection on each second pixel point, so that the area expansion can be carried out in a reciprocating manner, which is beneficial to further improve the accuracy of the area expansion.
在一些实施例中,外扩区域获取模块63具体配置为响应于检测到各个第二像素点均已执行外扩检测,获取由原始区域内第一像素点和由第二像素点更新得到的第一像素点所形成的连通域,并将连通域作为外扩区域。因此,在检测到各个第二像素点均已执行外扩检测的情况下,获取由原始区域内第一像素点和由第二像素点更新得到的第一像素点所形成的连通域,并将连通域作为外扩区域,即区域外扩随着各个第二像素点均已执行外扩检测而结束,并由最终所有第一像素点所形成的连通域作为外扩区域,有利于提升外扩区域的准确性。In some embodiments, the expanded area acquiring module 63 is specifically configured to acquire the updated first pixel point and the second pixel point in the original area in response to detecting that each second pixel point has performed the expanded detection. A connected domain formed by a pixel, and the connected domain is used as an extended area. Therefore, when it is detected that each second pixel point has performed the extension detection, the connected domain formed by the first pixel point in the original area and the first pixel point updated by the second pixel point is obtained, and The connected domain is used as the expansion area, that is, the expansion of the area ends with the expansion detection of each second pixel, and the connected domain formed by all the first pixels is used as the expansion area, which is conducive to improving the expansion. area accuracy.
在一些实施例中,待测图像为医学图像,目标对象为病灶,且医学图像中还包括若 干标的组织;图像处理装置60还包括侵犯检测模块,配置为检测各个第一像素点分别对若干标的组织的侵犯数据;其中,侵犯数据包括:第一像素点所侵犯的标的组织。因此,待测图像为医学图像,且目标对象为病灶,医学图像中还包括若干标的组织,在区域外扩过程中,进一步检测各个第一像素点分别对若干标的组织的侵犯数据,且侵犯数据包括第一像素点所侵犯的标的组织,即能够记录各个第一像素点分别对标的组织的侵犯数据,从而能够在应用过程中提供参考信息,有利于提升用户体验。In some embodiments, the image to be tested is a medical image, the target object is a lesion, and the medical image also includes several target tissues; the image processing device 60 also includes an infringement detection module configured to detect the impact of each first pixel on several target tissues. Infringement data of the organization; wherein, the infringement data includes: the target organization infringed by the first pixel. Therefore, the image to be tested is a medical image, and the target object is a lesion. The medical image also includes several target tissues. Including the target tissue violated by the first pixel, that is, the infringement data of each first pixel on the target tissue can be recorded, so that reference information can be provided during the application process, which is conducive to improving user experience.
在一些实施例中,待测图像中识别得到多个目标对象;图像处理装置60还包括列表显示模块,配置为显示对象列表;其中,对象列表包括多个目标对象的标识符;图像处理装置60还包括外扩交互模块,配置为响应于标识符处于被选择状态以及用户输入的外扩指令,结合像素外扩检测模块62和外扩区域获取模块63对标识符对应的目标对象,执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤以及后续步骤,得到外扩区域。因此,待测图像中识别得到多个目标对象,在此基础上,显示对象列表,且对象列表包括多个目标对象的标识符,从而响应于标识符处于被选择状态以及用户输入的外扩指令,对标识符对应的目标对象,执行对各个第二像素点并行执行外扩检测,得到检测结果的步骤以及后续步骤,得到外扩区域,故能够在待测图像中存在多个目标对象的情况下,根据用户指示进行区域外扩,有利于提高用户体验。In some embodiments, multiple target objects are identified in the image to be tested; the image processing device 60 also includes a list display module configured to display a list of objects; wherein, the object list includes identifiers of multiple target objects; the image processing device 60 It also includes an external expansion interaction module configured to respond to the identifier being in the selected state and the external expansion instruction input by the user, combined with the pixel external expansion detection module 62 and the external expansion area acquisition module 63 for the target object corresponding to the identifier. The step of performing the expansion detection on the second pixel in parallel to obtain the detection result and the subsequent steps to obtain the expansion area. Therefore, a plurality of target objects are identified in the image to be tested. On this basis, an object list is displayed, and the object list includes identifiers of a plurality of target objects. , for the target object corresponding to the identifier, execute the expansion detection for each second pixel point in parallel, obtain the detection result and the subsequent steps, and obtain the expansion area, so it is possible to have multiple target objects in the image to be tested In this case, regional expansion is performed according to user instructions, which is conducive to improving user experience.
在一些申请实施例中,图像处理装置60包括三角化模块,配置为基于外扩区域,三角化得到目标对象的表面网格;图像处理装置60包括模型渲染模块,配置为利用目标对象的渲染参数对目标对象的表面网格进行渲染,得到目标对象的图像模型;图像处理装置60包括模型显示模块,配置为在图像显示界面中显示目标对象的图像模型。In some application embodiments, the image processing device 60 includes a triangulation module configured to triangulate the surface mesh of the target object based on the extended area; the image processing device 60 includes a model rendering module configured to use the rendering parameters of the target object Rendering the surface mesh of the target object to obtain an image model of the target object; the image processing device 60 includes a model display module configured to display the image model of the target object on an image display interface.
因此,在得到外扩区域之后,基于外扩区域三角化得到目标对象的表面网格,并利用目标对象的渲染参数对目标对象的表面网格进行渲染,得到目标对象的图像模型,从而在图像显示界面中显示目标对象的图像模型,故能够有利于直观展示目标对象的三维信息,有利于提升用户体验。Therefore, after obtaining the extended area, the surface mesh of the target object is obtained based on the triangulation of the extended area, and the rendering parameters of the target object are used to render the surface mesh of the target object to obtain the image model of the target object. The image model of the target object is displayed on the display interface, so it can be beneficial to intuitively display the three-dimensional information of the target object and improve user experience.
上述原始区域获取模块61、像素外扩检测模块62、外扩区域获取模块63、重复检测模块、侵犯检测模块和三角化模块均可以基于电子设备的处理器实现。The above-mentioned original area acquisition module 61, pixel extension detection module 62, extension area acquisition module 63, repetition detection module, infringement detection module and triangulation module can all be implemented based on the processor of the electronic device.
请参阅图7,图7是本申请实施例提供的电子设备的框架示意图。电子设备70包括相互耦接的存储器71和处理器72,处理器72用于执行存储器71中存储的程序指令,以实现上述任一图像处理方法实施例的步骤。在一个实施场景中,电子设备70可以包括但不限于:微型计算机、服务器,此外,电子设备70还可以包括笔记本电脑、平板电脑等移动设备,在此不做限定。Please refer to FIG. 7 . FIG. 7 is a schematic frame diagram of an electronic device provided by an embodiment of the present application. The electronic device 70 includes a memory 71 and a processor 72 coupled to each other, and the processor 72 is configured to execute program instructions stored in the memory 71 to implement the steps of any one of the above image processing method embodiments. In an implementation scenario, the electronic device 70 may include, but is not limited to: a microcomputer and a server. In addition, the electronic device 70 may also include mobile devices such as notebook computers and tablet computers, which are not limited here.
具体而言,处理器72用于控制其自身以及存储器71以实现上述任一图像处理方法实施例的步骤。处理器72还可以称为中央处理器(Central Processing Unit,CPU)。处理器72可能是一种集成电路芯片,具有信号的处理能力。处理器72还可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。另外,处理器72可以由集成电路芯片共同实现。Specifically, the processor 72 is used to control itself and the memory 71 to implement the steps of any one of the above image processing method embodiments. The processor 72 may also be called a central processing unit (Central Processing Unit, CPU). The processor 72 may be an integrated circuit chip with signal processing capability. The processor 72 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. In addition, the processor 72 may be jointly implemented by an integrated circuit chip.
在一些实施例中,上述电子设备为终端设备或服务器。In some embodiments, the aforementioned electronic device is a terminal device or a server.
上述方案,一方面由于外扩检测是基于各个第二像素点而执行的,故能够实现像素级的区域外扩,有利于提高区域外扩的精度,另一方面由于外扩检测是并行执行的,故有利于提高区域外扩的速度。故此,能够提高区域外扩的精度和速度。The above scheme, on the one hand, because the expansion detection is performed based on each second pixel point, it can realize pixel-level area expansion, which is beneficial to improve the accuracy of area expansion; on the other hand, because the expansion detection is performed in parallel , so it is beneficial to increase the speed of regional expansion. Therefore, the accuracy and speed of area expansion can be improved.
请参阅图8,图8是本申请实施例提供的计算机可读存储介质的框架示意图。计算机可读存储介质80存储有能够被处理器运行的程序指令801,程序指令801用于实现上述 任一图像处理方法实施例的步骤。Please refer to FIG. 8 . FIG. 8 is a schematic framework diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable storage medium 80 stores program instructions 801 that can be executed by the processor, and the program instructions 801 are used to implement the steps of any of the above image processing method embodiments.
上述方案,一方面由于外扩检测是基于各个第二像素点而执行的,故能够实现像素级的区域外扩,有利于提高区域外扩的精度,另一方面由于外扩检测是并行执行的,故有利于提高区域外扩的速度。故此,能够提高区域外扩的精度和速度。The above scheme, on the one hand, because the expansion detection is performed based on each second pixel point, it can realize pixel-level area expansion, which is beneficial to improve the accuracy of area expansion; on the other hand, because the expansion detection is performed in parallel , so it is beneficial to increase the speed of regional expansion. Therefore, the accuracy and speed of area expansion can be improved.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the methods described in the method embodiments above, and its specific implementation can refer to the description of the method embodiments above. For brevity, here No longer.
在本申请所提供的几个实施例中,应该理解到,所揭露的方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性、机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed methods and devices may be implemented in other ways. For example, the device implementations described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式方案的目的。A unit described as a separate component may or may not be physically separated, and a component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or may also be distributed to network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
工业实用性Industrial Applicability
本申请实施例公开了一种图像处理方法及相关装置、电子设备、计算机存储介质和计算机程序。图像处理方法包括:获取待测图像中目标对象所在的原始区域,其中,原始区域内包含若干第一像素点,原始区域外存在若干第二像素点;对各个第二像素点并行执行外扩检测,得到检测结果,其中,检测结果包括是否将第二像素点作为新的第一像素点;基于原始区域和检测结果,得到目标对象的外扩区域。上述方案,能够提高区域外扩的精度和速度。The embodiment of the present application discloses an image processing method, a related device, electronic equipment, a computer storage medium and a computer program. The image processing method includes: obtaining the original area where the target object is located in the image to be tested, wherein the original area contains a number of first pixels, and there are a number of second pixels outside the original area; parallelly performing external expansion detection on each second pixel , to obtain a detection result, wherein the detection result includes whether the second pixel is used as a new first pixel; based on the original area and the detection result, an extended area of the target object is obtained. The above solution can improve the accuracy and speed of area expansion.

Claims (24)

  1. 一种图像处理方法,应用于电子设备中,所述方法包括:An image processing method applied to electronic equipment, the method comprising:
    获取待测图像中目标对象所在的原始区域,其中,所述原始区域内包含若干第一像素点,所述原始区域外存在若干第二像素点;Obtaining the original area where the target object is located in the image to be tested, wherein the original area contains a number of first pixels, and there are a number of second pixels outside the original area;
    对各个所述第二像素点并行执行外扩检测,得到检测结果,其中,所述检测结果包括是否将所述第二像素点作为新的所述第一像素点;Executing extension detection in parallel on each of the second pixels to obtain a detection result, wherein the detection result includes whether the second pixel is used as the new first pixel;
    基于所述原始区域和所述检测结果,得到所述目标对象的外扩区域。Based on the original area and the detection result, an extended area of the target object is obtained.
  2. 根据权利要求1所述的方法,其中,所述对各个所述第二像素点并行执行外扩检测,包括:采用各个计算内核并行运行的方式,对所述各个所述第二像素点并行执行外扩检测。The method according to claim 1, wherein the parallel execution of the expansion detection on each of the second pixels comprises: performing parallel execution on each of the second pixels in a manner in which each computing core runs in parallel Expansion detection.
  3. 根据权利要求1或2所述的方法,其中,所述各个所述第二像素点分别所在的第一参考区域均与所述原始区域存在交集。The method according to claim 1 or 2, wherein the first reference areas where the respective second pixel points are respectively located overlap with the original area.
  4. 根据权利要求1至3任一项所述的方法,其中,所述对各个所述第二像素点并行执行外扩检测,得到检测结果,包括:The method according to any one of claims 1 to 3, wherein, performing the extension detection on each of the second pixel points in parallel to obtain a detection result includes:
    获取包围所述第二像素点的第二参考区域,其中,所述第二参考区域内包含至少一个所述第一像素点;Acquiring a second reference area surrounding the second pixel, wherein at least one of the first pixel is contained in the second reference area;
    基于所述第二参考区域内的所述第二像素点和各个所述第一像素点,分别获取各个所述第一像素点至所述第二像素点的物理距离;Obtaining physical distances from each of the first pixels to the second pixels based on the second pixels and each of the first pixels in the second reference area;
    基于所述物理距离,得到所述检测结果。Based on the physical distance, the detection result is obtained.
  5. 根据权利要求4所述的方法,其中,所述基于所述物理距离,得到所述检测结果,包括:The method according to claim 4, wherein said obtaining said detection result based on said physical distance comprises:
    在最小所述物理距离低于预设阈值的情况下,确定所述检测结果包括将所述第二像素点作为新的所述第一像素点;When the minimum physical distance is lower than a preset threshold, determining the detection result includes using the second pixel as the new first pixel;
    在最小所述物理距离不低于所述预设阈值的情况下,确定所述检测结果包括不将所述第二像素点作为新的所述第一像素点。In a case where the minimum physical distance is not lower than the preset threshold, determining the detection result includes not using the second pixel as the new first pixel.
  6. 根据权利要求1至5任一项所述的方法,其中,所述原始区域外存在若干第三像素点,且各个所述第三像素点分别所在的第一参考区域与所述原始区域均不存在交集;在所述基于所述原始区域和所述检测结果,得到所述目标对象的外扩区域之前,所述方法还包括:The method according to any one of claims 1 to 5, wherein there are several third pixel points outside the original area, and the first reference area where each of the third pixel points are respectively located is different from the original area. There is an intersection; before obtaining the extended area of the target object based on the original area and the detection result, the method further includes:
    在所述检测结果包括将所述第二像素点作为新的所述第一像素点的情况下,将满足预设条件的第三像素点作为新的所述第二像素点,并重新执行对各个所述第二像素点并行执行外扩检测,得到检测结果的步骤;If the detection result includes the second pixel as the new first pixel, use the third pixel satisfying the preset condition as the new second pixel, and re-execute the The step of performing out-expansion detection in parallel on each of the second pixel points to obtain a detection result;
    其中,所述预设条件包括:所述第三像素点所在的第一参考区域内包含由所述第二像素点更新得到的第一像素点。Wherein, the preset condition includes: the first reference area where the third pixel is located contains the first pixel updated by the second pixel.
  7. 根据权利要求1至6任一项所述的方法,其中,所述基于所述原始区域和所述检测结果,得到所述目标对象的外扩区域,包括:The method according to any one of claims 1 to 6, wherein said obtaining the extended area of the target object based on the original area and the detection result comprises:
    响应于检测到各个所述第二像素点均已执行所述外扩检测,获取由所述原始区域内所述第一像素点和由所述第二像素点更新得到的第一像素点所形成的连通域,并将所述连通域作为所述外扩区域。Responsive to detecting that each of the second pixel points has performed the expansion detection, acquiring the first pixel point in the original area formed by the first pixel point and the first pixel point updated by the second pixel point The connected domain of , and the connected domain is used as the extension area.
  8. 根据权利要求1至7任一项所述的方法,其中,所述待测图像为医学图像,所述目标对象为病灶,且所述医学图像中还包括若干标的组织;所述方法还包括:The method according to any one of claims 1 to 7, wherein the image to be tested is a medical image, the target object is a lesion, and the medical image further includes several target tissues; the method further comprises:
    检测各个所述第一像素点分别对所述若干标的组织的侵犯数据;其中,所述侵犯数 据包括:所述第一像素点所侵犯的标的组织。Detecting violation data of each of the first pixel points on the plurality of target tissues; wherein the violation data includes: the target tissue violated by the first pixel point.
  9. 根据权利要求1至8任一项所述的方法,其中,所述待测图像包括多个所述目标对象;所述方法还包括:The method according to any one of claims 1 to 8, wherein the image to be tested includes a plurality of target objects; the method further comprises:
    显示对象列表;其中,所述对象列表包括所述多个所述目标对象的标识符;displaying a list of objects; wherein the list of objects includes identifiers of the plurality of target objects;
    响应于所述标识符处于被选择状态以及用户输入的外扩指令,对所述标识符对应的目标对象,执行所述对各个所述第二像素点并行执行外扩检测,得到检测结果的步骤以及后续步骤,得到所述外扩区域。In response to the identifier being in the selected state and the expansion instruction input by the user, for the target object corresponding to the identifier, perform the step of performing expansion detection on each of the second pixel points in parallel to obtain a detection result and subsequent steps to obtain the expanded area.
  10. 根据权利要求1至9任一项所述的方法,其中,在所述基于所述原始区域和所述检测结果,得到所述目标对象的外扩区域之后,所述方法还包括:The method according to any one of claims 1 to 9, wherein, after obtaining the extended area of the target object based on the original area and the detection result, the method further comprises:
    基于所述外扩区域,三角化得到所述目标对象的表面网格;Triangulating to obtain a surface mesh of the target object based on the expanded area;
    利用所述目标对象的渲染参数对所述目标对象的表面网格进行渲染,得到所述目标对象的图像模型;Rendering the surface mesh of the target object by using the rendering parameters of the target object to obtain an image model of the target object;
    在图像显示界面中显示所述目标对象的图像模型。The image model of the target object is displayed in the image display interface.
  11. 一种图像处理装置,包括:An image processing device, comprising:
    原始区域获取模块,配置为获取待测图像中目标对象所在的原始区域,其中,所述原始区域内包含若干第一像素点,所述原始区域外存在若干第二像素点;The original area acquisition module is configured to acquire the original area where the target object is located in the image to be tested, wherein the original area contains a number of first pixels, and there are a number of second pixels outside the original area;
    像素外扩检测模块,配置为对各个所述第二像素点并行执行外扩检测,得到检测结果,其中,所述检测结果包括是否将所述第二像素点作为新的第一像素点;The pixel expansion detection module is configured to perform expansion detection on each of the second pixels in parallel to obtain a detection result, wherein the detection result includes whether the second pixel is used as a new first pixel;
    外扩区域获取模块,配置为基于所述原始区域和所述检测结果,得到所述目标对象的外扩区域。The expanded area acquisition module is configured to obtain the expanded area of the target object based on the original area and the detection result.
  12. 根据权利要求11所述的装置,其中,所述像素外扩检测模块,配置为采用各个计算内核并行运行的方式,对所述各个所述第二像素点并行执行外扩检测。The device according to claim 11, wherein the pixel extension detection module is configured to perform the extension detection on each of the second pixels in parallel in a manner in which each calculation kernel runs in parallel.
  13. 根据权利要求11或12所述的装置,其中,所述各个第二像素点分别所在的第一参考区域均与原始区域存在交集。The device according to claim 11 or 12, wherein the first reference areas where the respective second pixel points are respectively located overlap with the original area.
  14. 根据权利要求11至13任一项所述的装置,其中,所述像素外扩检测模块包括参考区域获取子模块,配置为获取包围所述第二像素点的第二参考区域;所述像素外扩检测模块包括物理距离计算子模块,配置为对于所述第二参考区域内的第二像素点和各个所述第一像素点,分别获取各个所述第一像素点至所述第二像素点的物理距离;所述像素外扩检测模块包括检测结果获取子模块,配置为基于所述物理距离,得到所述检测结果;所述第二参考区域内包含至少一个所述第一像素点。The device according to any one of claims 11 to 13, wherein the pixel extension detection module includes a reference area acquisition sub-module configured to acquire a second reference area surrounding the second pixel; the pixel outer The expanded detection module includes a physical distance calculation submodule configured to obtain the distance from each of the first pixel points to the second pixel points for the second pixel points and each of the first pixel points in the second reference area, respectively. physical distance; the pixel extension detection module includes a detection result acquisition submodule configured to obtain the detection result based on the physical distance; the second reference area contains at least one of the first pixel points.
  15. 根据权利要求14所述的装置,其中,所述检测结果获取子模块包括第一确定单元,配置为在最小所述物理距离低于预设阈值的情况下,确定所述检测结果包括将所述第二像素点作为新的所述第一像素点;所述检测结果获取子模块包括第二确定单元,配置为在最小所述物理距离不低于所述预设阈值的情况下,确定所述检测结果包括不将所述第二像素点作为新的所述第一像素点。The device according to claim 14, wherein the detection result acquisition submodule includes a first determination unit configured to determine the detection result when the minimum physical distance is lower than a preset threshold. The second pixel is used as the new first pixel; the detection result acquisition sub-module includes a second determination unit configured to determine that the minimum physical distance is not lower than the preset threshold The detection result includes not using the second pixel as the new first pixel.
  16. 根据权利要求11至15任一项所述的装置,其中,所述原始区域外存在若干第三像素点,且各个所述第三像素点所在的第一参考区域与所述原始区域均不存在交集;所述图像处理装置还包括重复检测模块,配置为在所述检测结果包括将所述第二像素点作为新的所述第一像素点的情况下,将满足预设条件的第三像素点作为新的所述第二像素点,并重新执行对各个所述第二像素点并行执行外扩检测,得到所述检测结果的步骤;其中,所述预设条件包括:所述第三像素点所在的第一参考区域内包含由所述第二像素点更新得到的第一像素点。The device according to any one of claims 11 to 15, wherein there are several third pixel points outside the original area, and neither the first reference area where each of the third pixel points is located nor the original area exists Intersection; the image processing device further includes a duplication detection module configured to, when the detection result includes the second pixel as the new first pixel, select the third pixel that meets the preset condition point as the new second pixel point, and re-execute the step of performing extension detection on each of the second pixel points in parallel to obtain the detection result; wherein, the preset condition includes: the third pixel The first reference area where the point is located includes the first pixel point updated by the second pixel point.
  17. 根据权利要求11至16任一项所述的装置,其中,所述外扩区域获取模块具体配置为响应于检测到各个所述第二像素点均已执行所述外扩检测,获取由所述原始区域内所述第一像素点和由所述第二像素点更新得到的第一像素点所形成的连通域,并将所述 连通域作为所述外扩区域。The device according to any one of claims 11 to 16, wherein the expansion area acquisition module is specifically configured to, in response to detecting that each of the second pixel points have performed the expansion detection, acquire the A connected domain formed by the first pixel in the original area and the first pixel updated by the second pixel is used as the extended area.
  18. 根据权利要求11至17任一项所述的装置,其中,所述待测图像为医学图像,所述目标对象为病灶,且所述医学图像中还包括若干标的组织;所述图像处理装置还包括侵犯检测模块,配置为检测各个所述第一像素点分别对所述若干标的组织的侵犯数据;其中,所述侵犯数据包括:所述第一像素点所侵犯的标的组织。The device according to any one of claims 11 to 17, wherein the image to be tested is a medical image, the target object is a lesion, and the medical image further includes several target tissues; the image processing device further An infringement detection module is included, configured to detect the infringement data of each of the first pixel points on the plurality of target tissues; wherein the infringement data includes: the target tissue violated by the first pixel point.
  19. 根据权利要求11至18任一项所述的装置,其中,所述待测图像包括多个目标对象;所述图像处理装置还包括列表显示模块,配置为显示对象列表;其中,所述对象列表包括所述多个目标对象的标识符;所述图像处理装置还包括所述外扩交互模块,配置为响应于所述标识符处于被选择状态以及用户输入的外扩指令,结合像素外扩检测模块和外扩区域获取模块对所述标识符对应的目标对象,执行对各个所述第二像素点并行执行外扩检测,得到检测结果的步骤以及后续步骤,得到所述外扩区域。The device according to any one of claims 11 to 18, wherein the image to be tested includes a plurality of target objects; the image processing device further includes a list display module configured to display an object list; wherein the object list including the identifiers of the plurality of target objects; the image processing device further includes the expansion interaction module configured to respond to the identifier being in a selected state and the expansion instruction input by the user, combined with pixel expansion detection The module and the extended area acquisition module perform the step of performing extended detection on each of the second pixel points in parallel for the target object corresponding to the identifier to obtain the detection result and subsequent steps to obtain the expanded area.
  20. 根据权利要求11至19任一项所述的装置,其中,所述图像处理装置包括三角化模块,配置为基于所述外扩区域,三角化得到所述目标对象的表面网格;所述图像处理装置包括模型渲染模块,配置为利用所述目标对象的渲染参数对所述目标对象的表面网格进行渲染,得到所述目标对象的图像模型;所述图像处理装置包括模型显示模块,配置为在图像显示界面中显示所述目标对象的图像模型。The device according to any one of claims 11 to 19, wherein the image processing device includes a triangulation module configured to triangulate the surface mesh of the target object based on the expanded area; the image The processing device includes a model rendering module configured to use the rendering parameters of the target object to render the surface mesh of the target object to obtain an image model of the target object; the image processing device includes a model display module configured to The image model of the target object is displayed in the image display interface.
  21. 一种电子设备,包括相互耦接的存储器和处理器,所述处理器用于执行所述存储器中存储的程序指令,以实现权利要求1至10任一项所述的图像处理方法。An electronic device, comprising a memory and a processor coupled to each other, the processor is configured to execute program instructions stored in the memory, so as to realize the image processing method according to any one of claims 1 to 10.
  22. 根据权利要求21所述的电子设备,其中,所述电子设备为终端设备或服务器。The electronic device according to claim 21, wherein the electronic device is a terminal device or a server.
  23. 一种计算机可读存储介质,其上存储有程序指令,所述程序指令被处理器执行时实现权利要求1至10任一项所述的图像处理方法。A computer-readable storage medium, on which program instructions are stored, and when the program instructions are executed by a processor, the image processing method according to any one of claims 1 to 10 is implemented.
  24. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行用于实现权利要求1至10任一所述的图像处理方法。A computer program, comprising computer-readable codes, when the computer-readable codes run in an electronic device, a processor in the electronic device executes the image processing method described in any one of claims 1 to 10 .
PCT/CN2022/104069 2021-07-07 2022-07-06 Image processing method and related apparatus, electronic device, storage medium and program WO2023280197A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110767334.1 2021-07-07
CN202110767334.1A CN113506313A (en) 2021-07-07 2021-07-07 Image processing method and related device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023280197A1 true WO2023280197A1 (en) 2023-01-12

Family

ID=78011980

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/104069 WO2023280197A1 (en) 2021-07-07 2022-07-06 Image processing method and related apparatus, electronic device, storage medium and program

Country Status (2)

Country Link
CN (1) CN113506313A (en)
WO (1) WO2023280197A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113506313A (en) * 2021-07-07 2021-10-15 上海商汤智能科技有限公司 Image processing method and related device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032964A (en) * 2019-04-08 2019-07-19 腾讯科技(成都)有限公司 Image processing method, method, apparatus, equipment and the storage medium for identifying visual angle
WO2020052530A1 (en) * 2018-09-12 2020-03-19 腾讯科技(深圳)有限公司 Image processing method and device and related apparatus
CN110929728A (en) * 2020-02-18 2020-03-27 南京景三医疗科技有限公司 Image region-of-interest dividing method, image segmentation method and device
CN111767822A (en) * 2020-06-23 2020-10-13 浙江大华技术股份有限公司 Garbage detection method and related equipment and device
CN113506313A (en) * 2021-07-07 2021-10-15 上海商汤智能科技有限公司 Image processing method and related device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663446B (en) * 2012-04-24 2013-04-24 南方医科大学 Building method of bag-of-word model of medical focus image
CN109978890B (en) * 2019-02-25 2023-07-07 平安科技(深圳)有限公司 Target extraction method and device based on image processing and terminal equipment
CN111528800A (en) * 2020-04-30 2020-08-14 深圳开立生物医疗科技股份有限公司 Tumor ablation curative effect prediction method, device, equipment and computer medium
CN112288718B (en) * 2020-10-29 2021-11-02 推想医疗科技股份有限公司 Image processing method and apparatus, electronic device, and computer-readable storage medium
CN112508990A (en) * 2020-12-08 2021-03-16 刘君 Intraoperative navigation interactive real-time tissue segmentation method and platform based on GPU
CN112819811A (en) * 2021-02-24 2021-05-18 上海商汤智能科技有限公司 Image analysis method and related device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020052530A1 (en) * 2018-09-12 2020-03-19 腾讯科技(深圳)有限公司 Image processing method and device and related apparatus
CN110032964A (en) * 2019-04-08 2019-07-19 腾讯科技(成都)有限公司 Image processing method, method, apparatus, equipment and the storage medium for identifying visual angle
CN110929728A (en) * 2020-02-18 2020-03-27 南京景三医疗科技有限公司 Image region-of-interest dividing method, image segmentation method and device
CN111767822A (en) * 2020-06-23 2020-10-13 浙江大华技术股份有限公司 Garbage detection method and related equipment and device
CN113506313A (en) * 2021-07-07 2021-10-15 上海商汤智能科技有限公司 Image processing method and related device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113506313A (en) 2021-10-15

Similar Documents

Publication Publication Date Title
Kreiser et al. A survey of flattening‐based medical visualization techniques
US7813535B2 (en) System and method for fused PET-CT visualization for heart unfolding
US8170304B2 (en) Modeling cerebral aneurysms in medical images
Passat et al. Magnetic resonance angiography: From anatomical knowledge modeling to vessel segmentation
Bullitt et al. Symbolic description of intracerebral vessels segmented from magnetic resonance angiograms and evaluation by comparison with X-ray angiograms
US10497123B1 (en) Isolation of aneurysm and parent vessel in volumetric image data
US8249687B2 (en) Systems and methods for virtual identification of polyps
CN107111875B (en) Feedback for multi-modal auto-registration
US20100134491A1 (en) Methods, systems, and computer readable media for flexible occlusion rendering
CN104424647A (en) Method and apparatus for registering medical images
CN111340756B (en) Medical image lesion detection merging method, system, terminal and storage medium
JP5194138B2 (en) Image diagnosis support apparatus, operation method thereof, and image diagnosis support program
Sun et al. Lung segmentation refinement based on optimal surface finding utilizing a hybrid desktop/virtual reality user interface
WO2023280197A1 (en) Image processing method and related apparatus, electronic device, storage medium and program
EP2476102B1 (en) Improvements to curved planar reformation
CN107851337B (en) Interactive grid editing
CN113506365A (en) Image display method and related device, electronic equipment and storage medium
CN113516758A (en) Image display method and related device, electronic equipment and storage medium
CN111124233A (en) Medical image display method, interaction method and storage medium
CN107480673B (en) Method and device for determining interest region in medical image and image editing system
CN114224484B (en) Surface area localization method, device, computer equipment and storage medium for intracranial aneurysm
Guo et al. Portal vein and hepatic vein segmentation in multi-phase MR images using flow-guided change detection
CN103049920A (en) Identifying regions of interest in medical imaging data
JP5122650B2 (en) Path neighborhood rendering
CN116051553B (en) Method and device for marking inside three-dimensional medical model

Legal Events

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

Ref document number: 22836943

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE