WO2022036972A1 - Image segmentation method and apparatus, and electronic device and storage medium - Google Patents

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

Info

Publication number
WO2022036972A1
WO2022036972A1 PCT/CN2020/138131 CN2020138131W WO2022036972A1 WO 2022036972 A1 WO2022036972 A1 WO 2022036972A1 CN 2020138131 W CN2020138131 W CN 2020138131W WO 2022036972 A1 WO2022036972 A1 WO 2022036972A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
processed
pixel
target object
segmentation result
Prior art date
Application number
PCT/CN2020/138131
Other languages
French (fr)
Chinese (zh)
Inventor
韩泓泽
刘星龙
黄宁
孙辉
张少霆
Original Assignee
上海商汤智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海商汤智能科技有限公司 filed Critical 上海商汤智能科技有限公司
Priority to KR1020227001101A priority Critical patent/KR20220012407A/en
Priority to JP2021576593A priority patent/JP2022548453A/en
Publication of WO2022036972A1 publication Critical patent/WO2022036972A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/94Dynamic range modification of images or parts thereof based on local image properties, e.g. for local contrast enhancement
    • 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/20Special algorithmic details
    • G06T2207/20036Morphological image processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30028Colon; Small intestine
    • 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/30061Lung
    • 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/30092Stomach; Gastric

Definitions

  • the present disclosure relates to the technical field of image processing, and in particular, to an image segmentation method and device, an electronic device and a storage medium.
  • Image segmentation refers to the technology and process of dividing an image into several specific regions with unique properties and proposing objects of interest. Image segmentation is a key step from image processing to image analysis. Image segmentation methods in the related art are mainly divided into the following categories: threshold-based segmentation methods, region-based segmentation methods, edge-based segmentation methods, and specific theory-based segmentation methods.
  • the present disclosure provides an image segmentation method and device, an electronic device and a storage medium.
  • an image segmentation method comprising:
  • the pixel values of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the target object are determined. Adjustment is performed to obtain a first segmentation result corresponding to the image to be processed.
  • a preliminary segmented image corresponding to the image to be processed is obtained, and according to the edge information of the target object in the image to be processed, in the preliminary segmented image, the In the enclosed area included in the edge of the target object, the predicted pixel values of the pixels that do not belong to the target object are adjusted to obtain the first segmentation result corresponding to the to-be-processed image, so that a more accurate and robust image can be obtained.
  • the predicted pixel value of the pixel belonging to the target object is a first preset value
  • the predicted pixel value of the pixel not belonging to the target object is the first preset value. the second preset value
  • the predicted pixels that do not belong to the target object are analyzed.
  • the pixel value is adjusted to obtain the first segmentation result corresponding to the to-be-processed image, including:
  • the pixel values of the filled preliminary segmented image are adjusted to obtain the first segmentation result corresponding to the to-be-processed image.
  • a filled preliminary segmented image is obtained by adjusting the pixel value of the closed area whose pixel value is the second preset value in the preliminary segmented image to the first preset value, thereby enabling the
  • the first segmentation result corresponding to the processed image covers the inside of the organ of the target object, for example, covers the lung parenchyma such as the lung, the inside of the digestive tract (eg, the gastrointestinal tract), and the like. That is, by adopting the above-mentioned implementation manner, the missing holes in the target object (for example, in the human body) after image segmentation can be filled.
  • the first segmentation result corresponding to the to-be-processed image can be obtained, thereby reducing the The background part in the image to be processed (ie the part that does not belong to the target object) is divided into the probability of belonging to the target object.
  • adjusting the pixel value of the enclosed area with the pixel value of the second preset value in the preliminary segmented image to the first preset value to obtain the filled preliminary segmentation images including:
  • the seed point of the flood filling operation belongs to the background part ( That is, the part that does not belong to the target object), so that the first segmentation result corresponding to the image to be processed can cover the inside of the organ of the target object, thereby obtaining a more accurate segmentation result.
  • the pixel value of the filled preliminary segmented image is adjusted according to the edge information of the target object in the to-be-processed image to obtain the corresponding pixel value of the to-be-processed image.
  • Describe the first segmentation result including:
  • the edge information of the target object in the image to be processed determine the maximum connected domain included in the edge of the target object in the filled preliminary segmented image
  • the pixel values of the pixels outside the maximum connected region in the filled preliminary segmented image are adjusted to the second preset value to obtain the first segmentation result corresponding to the to-be-processed image.
  • false positive regions that are not connected to the target object can be eliminated, thereby greatly reducing the probability of erroneously classifying the background part as belonging to the target object, thereby improving the accuracy of image segmentation.
  • the target object is a human body
  • false positive regions that are not connected to the human body can be eliminated, thereby greatly reducing the probability that the background part (eg, bed board, etc.) is erroneously classified as belonging to the human body.
  • the method further includes:
  • the continuity of the image to be processed and the second segmentation result can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional segmentation result.
  • the target object is a human body
  • the continuity of the image to be processed and the human body in the adjacent images can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional human body segmentation result.
  • the segmentation result corresponding to each CT image in the CT image sequence can be obtained by using this implementation manner, thereby obtaining a smoother and more accurate three-dimensional human body segmentation result.
  • the first segmentation result is adjusted according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, to obtain
  • the third segmentation result corresponding to the image to be processed includes:
  • the first segmentation result is adjusted to obtain the third segmentation result corresponding to the image to be processed.
  • the third segmentation result corresponding to the image to be processed is obtained, so that the first segmentation corresponding to the image to be processed can be divided according to the segmentation result corresponding to the pixels in the adjacent images that are relatively related to the image to be processed The result is adjusted, thereby helping to improve the accuracy of the final segmentation result corresponding to the image to be processed.
  • the difference value of the pixel values belonging to the target object and at the same position as the image to be processed For pixels less than or equal to the third preset value, adjust the first segmentation result to obtain the third segmentation result corresponding to the image to be processed, including:
  • a first pixel set is obtained according to the pixels whose difference between the pixel values at the same position in the image to be processed and the adjacent image is less than or equal to a third preset value, and according to the first pixel set at the same position
  • the pixels belonging to the target object in the second segmentation result are obtained to obtain a second pixel set, and the pixels of the second pixel set in the first segmentation result are adjusted to belong to the target object to obtain the to-be-processed
  • the third segmentation result corresponding to the image so that the first segmentation result corresponding to the image to be processed can be processed according to the pixels in the second segmentation result that belong to the target object and are relatively related to the image to be processed. adjustment, thereby helping to improve the accuracy of the final segmentation result corresponding to the image to be processed.
  • the method further includes: training a neural network according to the training image and labeling data of the training image, wherein the labeling data of the training image includes the training image The true value of the pixels belonging to the target object in ;
  • the predicting the pixels belonging to the target object in the image to be processed to obtain a preliminary segmented image corresponding to the image to be processed includes: inputting the image to be processed into the neural network, and predicting the image to be processed through the neural network According to the information of the pixels belonging to the target object in the to-be-processed image, a preliminary segmented image corresponding to the to-be-processed image is obtained.
  • the part of the image to be processed that belongs to the target object is predicted by the neural network.
  • the image to be processed is a CT image
  • the target object is a human body
  • this implementation does not consider removing various bedboards in the CT image, that is, no longer focuses on the non-human body part, but focuses on
  • the segmentation of the human body in the CT image can ensure the accuracy and robustness of the segmentation results under a large amount of special-shaped bed plate data. That is, even if the image to be processed contains a special-shaped bed plate, an accurate and robust segmentation result can be obtained by adopting this implementation manner.
  • the training image is an electronic computed tomography CT image
  • the training of the neural network according to the training image and the labeled data of the training image includes: normalizing the pixel values of the training image according to a preset CT value range to obtain a normalized training image;
  • the normalized training image and the labeled data of the training image train the neural network.
  • the pixel values of the training image are normalized according to a preset CT value range to obtain a normalized training image, and according to the normalized training image and the training image
  • the labeled data of the image trains the neural network, thereby helping to reduce the computational load of the neural network and improve the convergence speed of the neural network.
  • an image segmentation method comprising:
  • the preliminary segmented image is adjusted to obtain a fourth segmentation result corresponding to the to-be-processed image.
  • the preliminary segmented image is adjusted to obtain the fourth segmentation result corresponding to the image to be processed includes:
  • the difference value of the pixel values belonging to the target object and at the same position as the image to be processed For pixels less than or equal to the third preset value, adjust the preliminary segmented image to obtain a fourth segmentation result corresponding to the to-be-processed image, including:
  • the pixels of the second pixel set in the preliminary segmented image are adjusted to belong to the target object, and a fourth segmentation result corresponding to the to-be-processed image is obtained.
  • an image segmentation apparatus comprising:
  • a first segmentation part configured to predict pixels belonging to the target object in the to-be-processed image, and obtain a preliminary segmented image corresponding to the to-be-processed image
  • the first adjustment part is configured to, according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image, predict that in the enclosed area included in the edge of the target object, those that do not belong to the
  • the pixel values of the pixels of the target object are adjusted to obtain a first segmentation result corresponding to the image to be processed.
  • the predicted pixel value of the pixel belonging to the target object is a first preset value
  • the predicted pixel value of the pixel not belonging to the target object is the first preset value. the second preset value
  • the first adjustment module is used for:
  • the pixel values of the filled preliminary segmented image are adjusted to obtain a first segmentation result corresponding to the to-be-processed image.
  • the first adjustment module is used for:
  • the first adjustment module is used for:
  • the edge information of the target object in the to-be-processed image determine the maximum connected domain included in the edge of the target object in the filled preliminary segmented image
  • the pixel values of the pixels outside the maximum connected region in the filled preliminary segmented image are adjusted to the second preset value to obtain the first segmentation result corresponding to the to-be-processed image.
  • the apparatus further includes:
  • a second acquisition module configured to acquire an image adjacent to the to-be-processed image and a second segmentation result corresponding to the adjacent image
  • a third adjustment module configured to adjust the first segmentation result according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, to obtain the to-be-processed image The third segmentation result corresponding to the image.
  • the third adjustment module is used for:
  • the third adjustment module is used for:
  • the device further includes: a training module for training a neural network according to the training image and the labeling data of the training image, wherein the labeling data of the training image includes the true values of the pixels belonging to the target object in the training image. value;
  • the first segmentation module is used for: inputting the image to be processed into the neural network, and predicting the information of the pixels belonging to the target object in the image to be processed through the neural network; The pixel information of the object is obtained to obtain a preliminary segmented image corresponding to the to-be-processed image.
  • the training image is an electronic computed tomography CT image
  • the training module is used for: normalizing the pixel values of the training image according to a preset CT value range to obtain a normalized training image; according to the normalized training image and the training image
  • the labeled data of the images trains the neural network.
  • an image segmentation apparatus comprising:
  • the second segmentation part is configured to predict the pixels belonging to the target object in the to-be-processed image, and obtain a preliminary segmented image corresponding to the to-be-processed image;
  • a first acquiring part configured to acquire an image adjacent to the to-be-processed image and a second segmentation result corresponding to the adjacent image
  • the second adjustment part is configured to adjust the preliminary segmented image according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image and the second segmentation result to obtain the image to be processed The corresponding fourth segmentation result.
  • the second adjustment module is used for:
  • the preliminary segmented image is adjusted to obtain a fourth segmentation result corresponding to the to-be-processed image.
  • the second adjustment module is used for:
  • the pixels of the second pixel set in the preliminary segmented image are adjusted to belong to the target object, and a fourth segmentation result corresponding to the to-be-processed image is obtained.
  • an electronic device comprising: one or more processors; a memory configured to store executable instructions; wherein the one or more processors are configured to invoke the memory storage executable instructions to perform the above image segmentation method.
  • a computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the above method when executed by a processor.
  • a preliminary segmented image corresponding to the to-be-processed image is obtained by predicting the pixels belonging to the target object in the to-be-processed image, and according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image
  • the pixel values of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the target object are adjusted to obtain the first segmentation result corresponding to the image to be processed. Get more accurate and robust segmentation results.
  • a computer program including computer-readable codes, where, when the computer-readable codes are executed in an electronic device, a processor in the electronic device executes the above-mentioned image segmentation method.
  • 1-1 is a schematic diagram 1 of an application scenario of an image segmentation method provided by an embodiment of the present disclosure
  • 1-2 is a second schematic diagram of an application scenario of an image segmentation method provided by an embodiment of the present disclosure
  • FIG. 2 is a flowchart of an image segmentation method provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a U-shaped convolutional neural network provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of splicing edges of a preset width around a preliminary segmented image to obtain a preliminarily segmented image after splicing, according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart of an image segmentation method provided by another embodiment of the present disclosure.
  • FIG. 6 is a block diagram of an image segmentation apparatus provided by an embodiment of the present disclosure.
  • FIG. 7 is another block diagram of an image segmentation apparatus provided by an embodiment of the present disclosure.
  • FIG. 8 is a block diagram of an electronic device 800 according to an embodiment of the present disclosure.
  • FIG. 9 is a block diagram of an electronic device 1900 according to an embodiment of the present disclosure.
  • the bed plate of the CT instrument will become an artifact in the scanned CT image sequence.
  • This kind of artifact will cause great interference in the 3D visualization of the human body by the computer-aided software (ie, the 3D human body model obtained from the CT image sequence) and the subsequent processing.
  • the computer-aided software ie, the 3D human body model obtained from the CT image sequence
  • bed boards of various shapes will block the human body during 3D visualization, and when the organs in the human body are segmented, some special-shaped bed boards outside the human body may be identified as false positives.
  • the bed board in the CT image is mainly removed through threshold and morphological operations, and the human body part in the CT image is retained.
  • the shape of the bed plate, the CT value of the bed plate in the CT image, and the uniformity of the CT value of the bed plate in the CT image are significantly different from those of the human body, which can be removed by thresholding and morphological manipulation.
  • related technologies cannot obtain accurate segmentation results. For example, a curved cortical bed board that fits closely with the human body is closely fitted with the human body in the CT image, the demarcation is not obvious, and the CT value is relatively close, so it is difficult to separate it from the human body.
  • CT value is a calculation unit for measuring the density of a local tissue or organ in the human body, also known as Hounsfield Unit (HU).
  • the embodiments of the present disclosure provide an image segmentation method and device, an electronic device, and a storage medium.
  • the pixel value of the pixel is adjusted to obtain the first segmentation result corresponding to the to-be-processed image, so that a more accurate and robust segmentation result can be obtained.
  • the executing subject of the image segmentation method may be an image segmentation device.
  • the image segmentation method may be performed by a terminal device or a server or other processing device.
  • the terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, or a wearable devices, etc.
  • the image segmentation method may be implemented by a processor invoking computer-readable instructions stored in a memory.
  • the image segmentation device 10 may include a processing device 11 and an image acquisition device 12.
  • the image segmentation device 11 can pass
  • the image acquisition device 12 acquires the image to be divided, and the processing device 12 performs segmentation processing on the to-be-divided image to obtain a first segmentation result.
  • the image segmentation device may be implemented as a CT machine, and a CT image to be segmented is acquired by a CT scanner, and image segmentation processing is performed on the acquired CT image to be segmented.
  • the image segmentation apparatus 10 can receive the real-time collected images to be segmented transmitted by other devices 13 through the network 14 . , in this way, the image segmentation device 10 can perform segmentation processing on the received image to be segmented to obtain the first segmentation result.
  • the image segmentation device can be implemented as a smart phone, and the smart phone can receive the CT image to be segmented sent by the CT machine through the network, so that the smart phone can perform image segmentation processing on the received CT image to be segmented.
  • FIG. 1 shows a flowchart of the image segmentation method provided by an embodiment of the present disclosure.
  • the image segmentation method includes step S11 and step S12.
  • step S11 pixels belonging to the target object in the image to be processed are predicted, and a preliminary segmented image corresponding to the image to be processed is obtained.
  • the image to be processed may represent an image that needs to be segmented.
  • the to-be-processed image may be a two-dimensional image or a three-dimensional image.
  • the image to be processed may be a medical image.
  • the image to be processed may be a CT image, an MRI (Magnetic Resonance Imaging, magnetic resonance imaging) image, and the like.
  • the to-be-processed image can also be any image that needs to be segmented other than medical images.
  • the target object may represent an object that needs to be segmented.
  • the target object may be a human body, an animal body, an organ of a human body, an organ of an animal body, or the like.
  • each pixel in the image to be processed belongs to the target object.
  • the probability that each pixel in the image to be processed belongs to the target object can be predicted.
  • the probability of the pixel belonging to the target object is greater than or equal to the preset threshold, it can be determined that the pixel belongs to the target object; if the probability of the pixel belonging to the target object is less than the preset threshold, it can be determined The pixel does not belong to the target object.
  • the preset threshold may be 0.5.
  • a binarized preliminary segmented image corresponding to the to-be-processed image can be obtained.
  • the size of the preliminary segmented image may be the same as that of the image to be processed. For example, if the height of the image to be processed is H and the width is W, the height of the preliminary segmented image is also H and the width is W.
  • the predicted pixel value of the pixel belonging to the target object is a first preset value
  • the predicted pixel value of the pixel not belonging to the target object is the first preset value.
  • the second preset value is not equal to the second preset value.
  • the pixel value of the pixel in the preliminarily segmented image is the first preset value; if it is predicted that the pixel does not belong to the target object, the image is preliminarily segmented
  • the pixel value of the pixel in is the second preset value.
  • the first preset value is 1 and the second preset value is 0, that is, the predicted pixel value of the pixel belonging to the target object in the preliminary segmented image is 1, and the predicted pixel value of the pixel not belonging to the target object is 0 .
  • the embodiments of the present disclosure do not limit the values of the first preset value and the second preset value, as long as the first preset value and the second preset value are different.
  • the first preset value may be 0, and the second preset value may be 255.
  • the method before predicting the pixels belonging to the target object in the image to be processed, the method further includes: training a neural network according to the training image and the labeled data of the training image, wherein the training The labeling data of the image includes the true value of the pixels belonging to the target object in the training image; the predicting the pixels belonging to the target object in the image to be processed, and obtaining a preliminary segmented image corresponding to the image to be processed, including: The processed image is input into the neural network, and the neural network is used to predict the information of the pixels belonging to the target object in the to-be-processed image; according to the information of the pixels belonging to the target object in the to-be-processed image, the to-be-processed image is obtained.
  • the image corresponds to the preliminary segmented image.
  • the labeled data of the training image may include a mask corresponding to the training image, and the size of the mask corresponding to the training image may be the same as the training image.
  • the pixel value of the pixel may be a first preset value, for example, the first preset value The value can be 1; if in the training image, the true value of the pixel does not belong to the target object, then in the mask corresponding to the training image, the pixel value of the pixel can be the second preset value, for example , the second preset value may be 0.
  • the labeled data of the training image is not limited to be represented by a mask.
  • the labeled data of the training image may also be represented by a matrix, a table, or the like.
  • the training image may be input into the neural network, and the predicted segmentation result of the training image may be output via the neural network, wherein the predicted segmentation result of the training image may include The probability of each pixel belonging to the target object; according to the labeled data of the training image and the predicted segmentation result of the training image, the value of the loss function corresponding to the training image is obtained; according to the value of the loss function corresponding to the training image value to train the neural network.
  • the value of the Dice loss function can be obtained according to the predicted segmentation result of the training image obtained by the neural network and the labeling data of the training image.
  • the predicted segmentation result of the training image obtained by the neural network is P
  • the labeled data of the training image is M
  • the value of the Dice loss function in other examples, a loss function such as a cross-entropy loss function may also be employed.
  • the value of the loss function can be passed to each parameter of the neural network layer by layer through reverse derivation, and adaptive matrix estimation (Adaptive moment estimation, Adam) can be used (for example, the learning rate is 0.0003), Stochastic Gradient Descent (SGD) and other optimizers to update the parameters of the neural network.
  • adaptive matrix estimation Adaptive moment estimation, Adam
  • SGD Stochastic Gradient Descent
  • the information of pixels in the image to be processed that are predicted by the neural network and belong to the target object may include the probability that each pixel in the image to be processed belongs to the target object.
  • the obtaining a preliminary segmented image corresponding to the to-be-processed image according to the information of the pixels belonging to the target object in the to-be-processed image may include: for any pixel, if the If the probability that the pixel belongs to the target object is greater than or equal to the preset threshold, the pixel value of the pixel in the preliminary segmented image corresponding to the image to be processed is the first preset value; if the pixel in the image to be processed belongs to the target object If the probability is less than the preset threshold, the pixel value of the pixel in the preliminary segmented image corresponding to the image to be processed is the second preset value.
  • the information of the pixels belonging to the target object in the image to be processed predicted by the neural network may include position information of the pixels belonging to the target object in the image to be processed.
  • the obtaining a preliminary segmented image corresponding to the to-be-processed image according to the information of the pixels belonging to the target object in the to-be-processed image may include: for any pixel, if the to-be-processed image is The position information of the pixel belonging to the target object includes the position of the pixel, then the pixel value of the pixel in the preliminary segmented image corresponding to the image to be processed is the first preset value; if the image to be processed belongs to the target object If the position information of the pixel does not include the position of the pixel, the pixel value of the pixel in the preliminary segmented image corresponding to the image to be processed is the second preset value.
  • the part of the image to be processed that belongs to the target object is predicted by the neural network.
  • the image to be processed is a CT image
  • the target object is a human body
  • this implementation does not consider removing various bedboards in the CT image, that is, no longer focuses on the non-human body part, but focuses on
  • the segmentation of the human body in the CT image can ensure the accuracy and robustness of the segmentation results under a large amount of special-shaped bed plate data. That is, even if the image to be processed contains a special-shaped bed plate, an accurate and robust segmentation result can be obtained by adopting this implementation manner.
  • the neural network may be a deep learning-based neural network.
  • the neural network may be a U-shaped convolutional neural network.
  • FIG. 3 shows a schematic diagram of a U-shaped convolutional neural network in an embodiment of the present disclosure.
  • the data flow is from left to right, and the U-shaped convolutional neural network includes a compression process and a decompression process.
  • the U-shaped convolutional neural network can be input, and the human body part in the image to be processed can be fitted by the U-shaped convolutional neural network. Finally, output the preliminary segmented image.
  • Convolution-regularization-activation can be replaced with residual block (Residual Block), depth convolution block (Inception Block), dense block (Dense Block), etc.
  • Pooling can be either max pooling or average pooling, or it can be replaced by a convolutional layer with a stride of 2.
  • the training image is a two-dimensional CT image
  • the neural network is a two-dimensional convolutional neural network
  • training images can be augmented.
  • the training image can be randomly scaled by a factor of 0.6 to 1.4, and then cropped from the center of the scaled image at a size of 512 ⁇ 512 to obtain training images of the same size at different scales.
  • training images can be divided into training and validation sets.
  • training images can be split into training and validation sets in a 4:1 ratio.
  • the neural network may be repeatedly trained using training images until the loss of the neural network on the validation set falls below 0.03.
  • the related technology uses operations such as morphology to segment the image, it is necessary to introduce a large number of hyperparameters, such as the threshold selected during binarization, the number of opening/closing operations, and the structure selected during erosion/dilation.
  • hyperparameters such as the threshold selected during binarization, the number of opening/closing operations, and the structure selected during erosion/dilation.
  • the threshold value needs to be changed to obtain normal segmentation results.
  • the target object in the training image is segmented through a neural network, which can be widely used in similar tasks without setting hyperparameters, so the robustness is high.
  • the training image is an electronic computed tomography CT image
  • the training of the neural network according to the training image and the labeled data of the training image includes: according to a preset CT value range, performing The pixel values of the training image are normalized to obtain a normalized training image; the neural network is trained according to the normalized training image and the labeled data of the training image.
  • the preset CT value range may be determined according to the CT value range of the target object. For example, if the target object is the human body, the preset CT value range may be set to [-500, 1200] according to the CT value range of the human body organs.
  • performing normalization processing on pixel values of the training image according to a preset CT value range to obtain a normalized training image including: for any pixel in the training image, According to the preset CT value range, the pixel value of the pixel is preprocessed to obtain the preprocessed pixel value of the pixel, wherein the preprocessed pixel value of the pixel is within the preset range.
  • the ratio of the first difference to the second difference is taken as the normalized pixel value of the pixel, wherein the first difference is equal to the preprocessed pixel value of the pixel.
  • the difference from the lower boundary value of the preset CT value range, the second difference is equal to the difference between the upper boundary value of the preset CT value range and the preprocessed pixel value of the pixel .
  • the preprocessed pixel value of the pixel is h
  • the lower boundary value of the preset CT value range is h min
  • the upper boundary value of the preset CT value range is h max
  • the The normalized pixel value of the pixel can be equal to According to the normalized pixel value of each pixel of the training image, a normalized training image can be obtained. That is, in the normalized training image, the pixel value of any pixel is the normalized pixel value of the pixel.
  • performing preprocessing on the pixel value of the pixel according to the preset CT value range to obtain the preprocessed pixel value of the pixel may include : For any pixel in the training image, if the pixel value of the pixel is smaller than the lower boundary value of the preset CT value range, the lower boundary value can be used as the preprocessed pixel value of the pixel ; If the pixel value of the pixel is greater than the upper boundary value of the preset CT value range, then the upper boundary value can be used as the preprocessed pixel value of the pixel; if the pixel value of the pixel is in Within the preset CT value range, the pixel value of the pixel may be used as the preprocessed pixel value of the pixel.
  • the preset CT value range is [-500, 1200], the lower boundary value of the preset CT value range is -500, and the upper boundary value of the preset CT value range is 1200.
  • the pixel value of a pixel in the training image is -505, you can use -500 as the preprocessed pixel value of the pixel; if the pixel value of a pixel in the training image is 1250, you can use 1200 as the pixel value after preprocessing.
  • the pixel values of the training image are normalized to obtain a normalized training image, and according to the normalized training image and the training image
  • the labeled data is used to train the neural network, thereby helping to reduce the computational load of the neural network and improve the convergence speed of the neural network.
  • step S12 according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image, it is predicted that in the closed area included in the edge of the target object, the target object does not belong to the target object
  • the pixel value of the pixel is adjusted to obtain the first segmentation result corresponding to the image to be processed.
  • an edge detection method may be used to determine the edge information of the target object in the image to be processed.
  • edge detection methods such as Canny algorithm and Sobel algorithm may be used to determine the edge information of the target object in the image to be processed.
  • the edge information of the target object in the image to be processed may include position information of pixels belonging to the edge of the target object in the image to be processed.
  • the first segmentation result may be used as the final segmentation result corresponding to the image to be processed.
  • a preliminary segmented image corresponding to the to-be-processed image is obtained by predicting the pixels belonging to the target object in the to-be-processed image, and according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image
  • the pixel values of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the target object are adjusted to obtain the first segmentation result corresponding to the image to be processed.
  • the target object is a human body or an animal body
  • the pixels inside the organs of the target object can also be segmented as belonging to the target object, so that a more accurate and robust segmentation result can be obtained.
  • the CT image is segmented by using the image segmentation method provided by the embodiment of the present disclosure, so that the human body part in the CT image can be accurately segmented, and the outside of the human body in the CT image can be accurately removed.
  • interference e.g. bed board, ventilator lines, head fixtures, etc.
  • the predicted value in the enclosed area included in the edge of the target object is Adjusting the pixel values of the pixels that do not belong to the target object to obtain the first segmentation result corresponding to the image to be processed, comprising: adjusting the pixel value in the preliminary segmented image to the value of the closed area of the second preset value.
  • the pixel value is adjusted to the first preset value to obtain a filled preliminary segmented image; according to the edge information of the target object in the to-be-processed image, the pixel value of the filled preliminary segmented image is adjusted, A first segmentation result corresponding to the to-be-processed image is obtained.
  • a filled preliminary segmented image is obtained by adjusting the pixel value of the closed area whose pixel value is the second preset value in the preliminary segmented image to the first preset value, thereby enabling the
  • the first segmentation result corresponding to the processed image covers the inside of the organ of the target object, for example, covers the lung parenchyma such as the lung, the inside of the digestive tract (eg, the gastrointestinal tract), and the like.
  • the missing holes in the target object (for example, in the human body) after image segmentation can be filled.
  • the first segmentation result corresponding to the to-be-processed image can be obtained, thereby reducing the The background part in the image to be processed (ie the part that does not belong to the target object) is divided into the probability of belonging to the target object.
  • adjusting the pixel value of the enclosed area with the pixel value of the second preset value in the preliminary segmented image to the first preset value to obtain the filled preliminary segmented image comprising: splicing edges of a preset width around the preliminary segmented image to obtain a preliminarily segmented image after splicing, wherein the pixel value of the pixels of the edge of the spliced preset width is the second preset value ; Select the pixel of the image edge of the preliminarily segmented image after the splicing as a seed point, and perform a flood filling operation on the preliminarily segmented image after the splicing to obtain the preliminary segmented image after the filling.
  • the preset width may be greater than or equal to 1 pixel.
  • the preset width may be 1 pixel.
  • FIG. 4 shows a schematic diagram of splicing edges of a preset width around a preliminary segmented image to obtain a preliminarily segmented image after splicing.
  • the preset width is 1 pixel.
  • edges with preset widths may be spliced around the preliminary segmented image.
  • a side with a preset width can also be spliced on one side, two sides or three sides of the preliminary segmented image.
  • the pixels of the image edge of the preliminarily segmented image after splicing may refer to the pixels on the edge of the preliminarily segmented image after splicing, for example, the uppermost pixel of the preliminarily segmented image after splicing pixel, bottommost pixel, leftmost pixel, rightmost pixel, etc.
  • the pixel in the upper left corner of the stitched preliminary segmented image may be used as the seed point.
  • the seeds of the flood filling operation can be guaranteed.
  • the point belongs to the background part (ie the part that does not belong to the target object), so that the first segmentation result corresponding to the image to be processed can cover the inside of the organ of the target object, thereby obtaining a more accurate segmentation result.
  • the pixel value of the filled preliminary segmented image is adjusted according to the edge information of the target object in the to-be-processed image to obtain the first corresponding to the to-be-processed image.
  • the segmentation result includes: according to the edge information of the target object in the to-be-processed image, determining the maximum connected domain included in the edge of the target object in the preliminarily segmented image after filling; The pixel values of the pixels outside the maximum connected region in the segmented image are adjusted to the second preset value to obtain the first segmentation result corresponding to the to-be-processed image.
  • false positive regions that are not connected to the target object can be eliminated, thereby greatly reducing the probability of erroneously classifying the background part as belonging to the target object, thereby improving the accuracy of image segmentation.
  • the target object is a human body
  • false positive regions that are not connected to the human body can be eliminated, thereby greatly reducing the probability that the background part (eg, bed board, etc.) is erroneously classified as belonging to the human body.
  • the method further includes: acquiring images adjacent to the image to be processed and the adjacent images The corresponding second segmentation result; according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, adjust the first segmentation result to obtain the to-be-processed The third segmentation result corresponding to the image.
  • the image adjacent to the image to be processed may be an image belonging to the same image sequence as the image to be processed and adjacent to the image to be processed.
  • the image to be processed is a CT image
  • the adjacent images may be images belonging to the same CT image sequence as the image to be processed and adjacent to the image to be processed.
  • the second segmentation result may refer to the final segmentation result corresponding to the adjacent images.
  • the continuity of the image to be processed and the second segmentation result can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional segmentation result.
  • the target object is a human body
  • the continuity of the image to be processed and the human body in the adjacent images can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional human body segmentation result.
  • the segmentation result corresponding to each CT image in the CT image sequence can be obtained by using this implementation manner, thereby obtaining a smoother and more accurate three-dimensional human body segmentation result.
  • the first segmentation result is adjusted according to the pixel value of the pixel at the same position in the to-be-processed image and the adjacent image, and the second segmentation result, to obtain the
  • the third segmentation result corresponding to the image to be processed includes: according to the adjacent images, the second segmentation result belongs to the target object and is in the same position as the image to be processed. For pixels whose difference value is less than or equal to a third preset value, the first segmentation result is adjusted to obtain a third segmentation result corresponding to the image to be processed.
  • the difference between the pixel values of the adjacent image and the image to be processed at the same position may refer to the difference between the normalized pixel values of the adjacent image and the image to be processed at the same position .
  • the third preset value may be 0.1.
  • the segmentation result corresponding to any pixel in the adjacent images may refer to whether the pixel belongs to the target object in the second segmentation result.
  • the difference between the pixel values of the target object in the second segmentation result and at the same position as the image to be processed is less than or equal to the first three preset values of pixels, adjusting the first segmentation result to obtain a third segmentation result corresponding to the image to be processed, including: according to the pixel value at the same position in the image to be processed and the adjacent image Pixels whose difference value is less than or equal to the third preset value are obtained to obtain a first pixel set; according to the pixels belonging to the target object in the second segmentation result of the first pixel set, a second pixel set is obtained; The pixels of the second pixel set in the first segmentation result are adjusted to belong to the target object, and a third segmentation result corresponding to the image to be processed is obtained.
  • the difference between the pixel values of any pixel in the first pixel set in the to-be-processed image and the adjacent image is less than or equal to a third preset value.
  • the first pixel set is obtained according to the pixels whose difference between the pixel values in the image to be processed and the adjacent images at the same position is less than or equal to the third preset value, and according to the first pixel set.
  • a pixel is concentrated in the pixels belonging to the target object in the second segmentation result to obtain a second pixel set, and the pixels of the second pixel set in the first segmentation result are adjusted to belong to the target object,
  • the third segmentation result corresponding to the image to be processed is obtained, whereby the pixels corresponding to the image to be processed can be classified according to the pixels in the second segmentation result that belong to the target object and are relatively related to the image to be processed.
  • the first segmentation result is adjusted, thereby helping to improve the accuracy of the final segmentation result corresponding to the image to be processed.
  • the third segmentation result may be used as the final segmentation result corresponding to the image to be processed.
  • FIG. 5 shows another flowchart of the image segmentation method provided by the embodiment of the present disclosure.
  • the executing subject of the image segmentation method may be an image segmentation device.
  • the image segmentation method may be performed by a terminal device or a server or other processing device.
  • the terminal device may be a user equipment, a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant, a handheld device, a computing device, a vehicle-mounted device, a wearable device, or the like.
  • the image segmentation method may be implemented by a processor invoking computer-readable instructions stored in a memory. As shown in FIG. 5 , the image segmentation method includes steps S41 to S43.
  • step S41 pixels belonging to the target object in the image to be processed are predicted, and a preliminary segmented image corresponding to the image to be processed is obtained.
  • step S42 an image adjacent to the to-be-processed image and a second segmentation result corresponding to the adjacent image are acquired.
  • the image adjacent to the to-be-processed image may be an image that belongs to the same image sequence as the to-be-processed image and is adjacent to the to-be-processed image.
  • the image to be processed is a CT image
  • the adjacent images may be images belonging to the same CT image sequence as the image to be processed and adjacent to the image to be processed.
  • the second segmentation result may refer to the final segmentation result corresponding to the adjacent images.
  • step S43 according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, the preliminary segmented image is adjusted to obtain a fourth corresponding image to be processed. Split result.
  • the continuity of the image to be processed and the second segmentation result can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional segmentation result.
  • the target object is a human body
  • the continuity of the image to be processed and the human body in the adjacent images can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional human body segmentation result.
  • a segmentation result corresponding to each CT image in the CT image sequence can be obtained by using the embodiments of the present disclosure, thereby obtaining a smoother and more accurate three-dimensional human body segmentation result.
  • the preliminary segmented image is adjusted to obtain the fourth segmentation result corresponding to the image to be processed includes: according to the adjacent images, the second segmentation result belongs to the target object and is in the same position as the image to be processed. For pixels whose difference value is less than or equal to the third preset value, the preliminary segmented image is adjusted to obtain a fourth segmentation result corresponding to the image to be processed.
  • the difference between the pixel values of the adjacent image and the image to be processed at the same position may refer to the normalized difference between the adjacent image and the image to be processed at the same position Difference of pixel values.
  • the third preset value may be 0.1.
  • the original pixel values of the adjacent images and the image to be processed at the same position can also be compared.
  • the difference between the pixel values belonging to the target object and at the same position as the image to be processed is less than or equal to the first Pixels with three preset values, adjust the preliminary segmented image, and obtain a fourth segmentation result corresponding to the image to be processed.
  • the preliminary segmented image corresponding to the to-be-processed image is adjusted, thereby helping to improve the accuracy of the final segmentation result corresponding to the to-be-processed image.
  • the segmentation result corresponding to any pixel in the adjacent images may refer to whether the pixel belongs to the target object in the second segmentation result.
  • the difference between the pixel values in the second segmentation result belonging to the target object and at the same position as the image to be processed is less than or a pixel equal to a third preset value
  • adjusting the preliminary segmented image to obtain a fourth segmentation result corresponding to the to-be-processed image including: according to the to-be-processed image and the adjacent image at the same position; A pixel whose pixel value difference is less than or equal to a third preset value is obtained to obtain a first pixel set; and a second pixel set is obtained according to the pixels of the first pixel set that belong to the target object in the second segmentation result ; Adjust the pixels of the second pixel set in the preliminary segmented image to belong to the target object, and obtain a fourth segmentation result corresponding to the to-be-processed image.
  • the difference between the pixel values of any pixel in the first pixel set in the to-be-processed image and the adjacent image is less than or equal to a third preset value.
  • a first pixel set is obtained according to a pixel whose difference between the pixel value of the image to be processed and the pixel value of the adjacent image at the same position is less than or equal to a third preset value.
  • a pixel is concentrated in the pixels belonging to the target object in the second segmentation result to obtain a second pixel set, and the pixels of the second pixel set in the first segmentation result are adjusted to belong to the target object,
  • the third segmentation result corresponding to the image to be processed is obtained, whereby the pixels corresponding to the image to be processed can be classified according to the pixels in the second segmentation result that belong to the target object and are relatively related to the image to be processed.
  • the first segmentation result is adjusted, thereby helping to improve the accuracy of the final segmentation result corresponding to the image to be processed.
  • the fourth segmentation result may be used as the final segmentation result corresponding to the image to be processed.
  • the method further includes: according to the edge information of the target object in the to-be-processed image, in the In the fourth segmentation result, the pixel values of the predicted pixels not belonging to the target object in the enclosed area included in the edge of the target object are adjusted to obtain the fifth segmentation result corresponding to the image to be processed.
  • the predicted Adjusting the pixel values of pixels that do not belong to the target object to obtain a fifth segmentation result corresponding to the to-be-processed image including: closing the pixel value in the fourth segmentation result to the second preset value
  • the pixel value of the area is adjusted to the first preset value, and a filled preliminary segmented image corresponding to the fourth segmentation result is obtained; according to the edge information of the target object in the to-be-processed image, the filled The pixel value of the preliminary segmented image is adjusted to obtain the fifth segmentation result corresponding to the to-be-processed image.
  • the filled preliminary segmented image includes: splicing edges of a preset width around the fourth segmentation result to obtain a fourth segmentation result after splicing, wherein the pixel values of the pixels of the spliced edges of the preset width are is the second preset value; select the pixels of the image edge of the fourth segmentation result after splicing as a seed point, and perform a flood filling operation on the fourth segmentation result after splicing to obtain the fourth segmentation
  • the result corresponds to the padded preliminary segmented image.
  • the predicted object does not belong to the target object.
  • adjusting the pixel values of the pixels of the target object to obtain a fifth segmentation result corresponding to the image to be processed including: determining the filled preliminary segmentation according to the edge information of the target object in the image to be processed the maximum connected domain included in the edge of the target object in the image; adjust the pixel values of the pixels outside the maximum connected domain in the filled preliminary segmented image to the second preset value to obtain the The fifth segmentation result corresponding to the image to be processed.
  • the fifth segmentation result may be used as the final segmentation result corresponding to the image to be processed.
  • the training image is a CT image of the human body.
  • the preset CT value range can be set to [-500, 1200] according to the CT values of all the tissues and organs of the human body. In this way, all the tissues and organs of the human body are covered.
  • any pixel in the training image is preprocessed to obtain the preprocessed pixel value.
  • the lower boundary value may be used as the preprocessed value of the pixel.
  • the upper boundary value can be used as the preprocessed pixel value of the pixel; if the pixel value of the pixel is If the value is within the preset CT value range, the pixel value of the pixel may be used as the preprocessed pixel value of the pixel.
  • the pixel value of a pixel in the training image is -505, you can use -500 as the preprocessed pixel value of the pixel; if the pixel value of a pixel in the training image is 1250, you can use -500 as the pixel value after preprocessing. 1200 is used as the preprocessed pixel value of the pixel; if the pixel value of a certain pixel in the training image is 800, 800 can be used as the preprocessed pixel value of the pixel.
  • formula (1) can be used to normalize the pixel value of any pixel of the training image:
  • h is the preprocessed pixel value of the pixel
  • h min is the lower boundary value of the preset CT value range
  • h max is the upper boundary value of the preset CT value range.
  • the normalized training images can be augmented.
  • the normalized training image can be randomly scaled by a factor of 0.6 to 1.4, and then cropped from the center of the scaled image at a size of 512 ⁇ 512 to obtain training images of the same size at different scales.
  • the normalized and augmented training images can be divided into a training set and a validation set.
  • the processed training images can be divided into training and validation sets in a 4:1 ratio.
  • the U-shaped convolutional neural network can be repeatedly trained by using the training set until the loss of the U-shaped convolutional neural network on the verification set drops below 0.03, and a trained U-shaped convolutional neural network is obtained.
  • the CT image to be processed is obtained, and the CT image to be processed is input into the U-shaped convolutional neural network after training, and the U-shaped convolutional neural network is used to predict whether the CT image to be processed belongs to Information of the pixels of the target object; according to the information of the pixels belonging to the target object in the CT image to be processed, a preliminary segmented image corresponding to the CT image to be processed is obtained.
  • edges with a width of 1 pixel can be spliced around the preliminary segmented image to obtain a preliminarily segmented image after splicing; the pixel in the upper left corner of the preliminarily segmented image after splicing is selected as a seed point, and perform a flood filling operation on the preliminarily segmented image after splicing to obtain a preliminarily segmented image after filling.
  • the maximum connected domain included in the edge of the target object in the preliminarily segmented image after filling can be determined;
  • the pixel values of the pixels outside the maximum connected region in the image are adjusted to the second preset value to obtain the first segmentation result corresponding to the CT image to be processed.
  • an image adjacent to the CT image to be processed and a second segmentation result corresponding to the adjacent image may be obtained.
  • the first pixel set can be obtained according to the pixel whose difference between the CT image to be processed and the pixel value at the same position in the adjacent image is less than or equal to the third preset value; according to the first pixel Concentrating on the pixels belonging to the target object in the second segmentation result to obtain a second pixel set; adjusting the pixels of the second pixel set in the first segmentation result to belong to the target object to obtain the The third segmentation result corresponding to the CT image to be processed.
  • the present disclosure also provides image segmentation devices, electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any image segmentation method provided by the present disclosure.
  • image segmentation devices electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any image segmentation method provided by the present disclosure.
  • FIG. 6 shows a block diagram of an image segmentation apparatus provided by an embodiment of the present disclosure.
  • the image segmentation device includes: a first segmentation part 51, configured to predict pixels belonging to the target object in the image to be processed, and obtain a preliminary segmented image corresponding to the image to be processed; a first adjustment part 52, It is configured to, according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image, perform an analysis of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the target object. The pixel values are adjusted to obtain the first segmentation result corresponding to the image to be processed.
  • the predicted pixel value of the pixel belonging to the target object is a first preset value
  • the predicted pixel value of the pixel not belonging to the target object is the first preset value.
  • the second preset value; the first adjustment part 52 is configured to adjust the pixel value of the closed area whose pixel value in the preliminary segmented image is the second preset value to the first preset value, to obtain The filled preliminary segmented image; according to the edge information of the target object in the to-be-processed image, the pixel values of the filled preliminary segmented image are adjusted to obtain a first segmentation result corresponding to the to-be-processed image.
  • the first adjustment part 52 is configured to splicing edges of a preset width around the preliminary segmented image to obtain a preliminarily segmented image after splicing, wherein the spliced preset The pixel value of the pixel of the side of the width is the second preset value; the pixel of the image edge of the spliced preliminary segmented image is selected as the seed point, and the flooded filling operation is performed on the spliced preliminary segmented image, Obtain the preliminarily segmented image after filling.
  • the first adjustment part 52 is configured to determine the edge of the target object in the filled preliminary segmented image according to the edge information of the target object in the image to be processed The maximum connected domain included; the pixel values of the pixels outside the maximum connected domain in the filled preliminary segmented image are adjusted to the second preset value to obtain the first segment corresponding to the image to be processed. result.
  • the apparatus further includes: a second acquisition part, configured to acquire an image adjacent to the image to be processed and a second segmentation result corresponding to the adjacent image; a third adjustment part, configured to adjust the first segmentation result according to the pixel value of the pixel at the same position in the to-be-processed image and the adjacent image, and the second segmentation result, to obtain the corresponding pixel value of the to-be-processed image The third segmentation result.
  • the third adjustment part is configured to be based on pixel values in the adjacent images that belong to the target object and are at the same position as the image to be processed in the second segmentation result For pixels whose difference value is less than or equal to a third preset value, adjust the first segmentation result to obtain a third segmentation result corresponding to the image to be processed.
  • the third adjustment part is configured to be smaller than or equal to a third preset value according to the difference between the pixel values in the image to be processed and the pixel values in the adjacent images at the same position.
  • the apparatus further includes: a training part configured to train a neural network according to a training image and labeling data of the training image, wherein the labeling data of the training image includes The true value of the pixels belonging to the target object; the first segmentation part 51 is configured to input the image to be processed into the neural network, and predict the information of the pixels belonging to the target object in the image to be processed through the neural network ; Obtain a preliminary segmented image corresponding to the to-be-processed image according to the information of the pixels belonging to the target object in the to-be-processed image.
  • the training image is an electronic computed tomography CT image; the training part is configured to perform normalization processing on the pixel values of the training image according to a preset CT value range, A normalized training image is obtained; the neural network is trained according to the normalized training image and the labeled data of the training image.
  • a preliminary segmented image corresponding to the to-be-processed image is obtained by predicting the pixels belonging to the target object in the to-be-processed image, and according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image, the target Adjust the pixel values of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the object, and obtain the first segmentation result corresponding to the image to be processed, so that a more accurate and robust segmentation can be obtained. result.
  • FIG. 7 shows another block diagram of an image segmentation apparatus provided by an embodiment of the present disclosure.
  • the image segmentation device includes: a second segmentation part 61, configured to predict pixels belonging to the target object in the image to be processed, and obtain a preliminary segmented image corresponding to the image to be processed; a first acquisition part 62, is configured to obtain the image adjacent to the image to be processed and the second segmentation result corresponding to the adjacent image; the second adjustment part 63 is configured to be the same as the adjacent image according to the image to be processed The pixel value of the pixel at the position and the second segmentation result are used to adjust the preliminary segmented image to obtain a fourth segmentation result corresponding to the to-be-processed image.
  • the second adjustment part 63 is configured to, according to the adjacent images, belong to the target object in the second segmentation result, and are in the same range as the to-be-processed image. If the difference between the pixel values at the same position is less than or equal to the third preset value, the preliminary segmented image is adjusted to obtain a fourth segmented result corresponding to the image to be processed.
  • the second adjustment part 63 is configured to be less than or equal to a third preset value according to the difference between the pixel values in the image to be processed and the pixel values in the adjacent images at the same position obtain the first pixel set; according to the pixels belonging to the target object in the second segmentation result, the second pixel set is obtained; the second pixel set in the preliminary segmented image is The pixels of the set are adjusted to belong to the target object, and a fourth segmentation result corresponding to the image to be processed is obtained.
  • the apparatus further includes: a fourth adjustment part, configured to, according to the edge information of the target object in the image to be processed, in the fourth segmentation result, perform an adjustment on the target The pixel values of the predicted pixels not belonging to the target object in the enclosed area included in the edge of the object are adjusted to obtain a fifth segmentation result corresponding to the image to be processed.
  • the fourth adjustment part is configured to adjust the pixel value of the enclosed area whose pixel value is the second preset value in the fourth segmentation result to the first preset value value to obtain the filled preliminary segmented image corresponding to the fourth segmentation result; according to the edge information of the target object in the to-be-processed image, adjust the pixel values of the filled preliminary segmented image to obtain the the fifth segmentation result corresponding to the image to be processed.
  • the fourth adjustment part is configured to splicing edges of a preset width around the fourth segmentation result to obtain a spliced fourth segmentation result, wherein the spliced
  • the pixel value of the pixel of the side of the width is set to the second preset value; the pixel of the image edge of the fourth segmentation result after the splicing is selected as the seed point, and the fourth segmentation result after the splicing is flooded
  • a filling operation is performed to obtain a filled preliminary segmented image corresponding to the fourth segmentation result.
  • the fourth adjustment part is configured to determine, according to edge information of the target object in the image to be processed, where the edge of the target object in the filled preliminary segmented image is located.
  • the maximum connected domain included; the pixel values of the pixels outside the maximum connected domain in the filled preliminary segmented image are adjusted to the second preset value to obtain the fifth segmentation result corresponding to the image to be processed .
  • the continuity of the image to be processed and the second segmentation result can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional segmentation result.
  • the target object is a human body
  • the continuity of the image to be processed and the human body in the adjacent images can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional human body segmentation result.
  • a segmentation result corresponding to each CT image in the CT image sequence can be obtained by using the embodiments of the present disclosure, thereby obtaining a smoother and more accurate three-dimensional human body segmentation result.
  • the functions or included parts of the apparatus may be configured to execute the methods described in the above method embodiments, and the specific implementation and technical effects may refer to the above method embodiments. It is concise and will not be repeated here.
  • a "part" may be a part of a circuit, a part of a processor, a part of a program or software, etc., of course, a unit, a module or a non-modularity.
  • Embodiments of the present disclosure further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.
  • An embodiment of the present disclosure further provides a computer program, including computer-readable code, when the computer-readable code is executed in an electronic device, the execution of the processor in the electronic device is configured to implement the above-mentioned image segmentation method.
  • Embodiments of the present disclosure further provide another computer program product for storing computer-readable instructions, which, when executed, cause the computer to perform the operations of the image segmentation method provided by any of the foregoing embodiments.
  • Embodiments of the present disclosure further provide an electronic device, including: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to invoke executable instructions stored in the memory instruction to execute the above method.
  • the electronic device may be provided as a terminal, server or other form of device.
  • FIG. 8 shows a block diagram of an electronic device 800 provided by an embodiment of the present disclosure.
  • electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc. terminal.
  • an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814 , and the communication component 816 .
  • the processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 802 can include one or more processors 820 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 802 may include one or more sections that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia portion to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operation at electronic device 800 . Examples of such data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. Memory 804 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • Power supply assembly 806 provides power to various components of electronic device 800 .
  • Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
  • Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
  • the touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action.
  • the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
  • Audio component 810 is configured to output and/or input audio signals.
  • audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when electronic device 800 is in operating modes, such as calling mode, recording mode, and voice recognition mode.
  • the received audio signal may be further stored in memory 804 or transmitted via communication component 816 .
  • audio component 810 also includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. Buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
  • Sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of electronic device 800 .
  • the sensor assembly 814 can detect the on/off state of the electronic device 800, the relative positioning of the components, such as the display and the keypad of the electronic device 800, the sensor assembly 814 can also detect the electronic device 800 or one of the electronic device 800 Changes in the position of components, presence or absence of user contact with the electronic device 800 , orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 .
  • Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, for use in imaging applications.
  • CMOS complementary metal oxide semiconductor
  • CCD charge coupled device
  • the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices.
  • the electronic device 800 can access a wireless network based on communication standards, such as wireless network (Wi-Fi), second generation mobile communication technology (2G), third generation mobile communication technology (3G), fourth generation mobile communication technology (4G) )/Long Term Evolution (LTE) of Universal Mobile Communications Technology, Fifth Generation Mobile Communications Technology (5G), or a combination thereof.
  • the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmed gate array (FPGA), controller, microcontroller, microprocessor or other element implementation is used to perform the above method.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A programmed gate array
  • controller microcontroller, microprocessor or other element implementation is used to perform the above method.
  • a non-transitory computer-readable storage medium comprising a memory 804 of computer program instructions executable by the processor 820 of the electronic device 800 to perform the above-described method.
  • FIG. 9 shows a block diagram of an electronic device 1900 provided by an embodiment of the present disclosure.
  • the electronic device 1900 may be provided as a server.
  • electronic device 1900 includes processing component 1922, which further includes one or more processors, and a memory resource represented by memory 1932 for storing instructions executable by processing component 1922, such as applications.
  • An application program stored in memory 1932 may include one or more portions each corresponding to a set of instructions.
  • the processing component 1922 is configured to execute instructions to perform the above-described methods.
  • the electronic device 1900 may also include a power supply assembly 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) interface 1958 .
  • the electronic device 1900 can operate based on an operating system stored in the memory 1932, such as a Microsoft server operating system (Windows ServerTM), a graphical user interface based operating system (Mac OS XTM) introduced by Apple, a multi-user multi-process computer operating system (UnixTM). ), Free and Open Source Unix-like Operating System (LinuxTM), Open Source Unix-like Operating System (FreeBSDTM) or similar.
  • a non-volatile computer-readable storage medium such as memory 1932 comprising computer program instructions executable by processing component 1922 of electronic device 1900 to perform the above-described method.
  • the present disclosure may be a system, method and/or computer program product.
  • the computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the present disclosure.
  • a computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Non-exhaustive list of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read only memory
  • flash memory static random access memory
  • SRAM static random access memory
  • CD-ROM compact disk read only memory
  • DVD digital versatile disk
  • memory sticks floppy disks
  • mechanically coded devices such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above.
  • Computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.
  • the computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • a network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
  • Computer program instructions for carrying out operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages.
  • Source or object code written in any combination, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the "C" language or similar programming languages.
  • the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through the Internet connect).
  • LAN local area network
  • WAN wide area network
  • custom electronic circuits such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs) can be personalized by utilizing state information of computer readable program instructions.
  • Computer readable program instructions are executed to implement various aspects of the present disclosure.
  • These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagrams may represent a section, segment, or portion of instructions that includes one or more functions for implementing the specified logical function(s) executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
  • the computer program product can be specifically implemented by hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
  • a software development kit Software Development Kit, SDK
  • a preliminary segmented image corresponding to the to-be-processed image is obtained by predicting the pixels belonging to the target object in the to-be-processed image; and according to the edge information of the target object in the to-be-processed image, the preliminary segmented image is
  • the pixel values of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the target object are adjusted to obtain a first segmentation result corresponding to the image to be processed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Apparatus For Radiation Diagnosis (AREA)
  • Image Analysis (AREA)

Abstract

An image segmentation method and apparatus, and an electronic device and a storage medium. The method comprises: performing prediction on a pixel, which belongs to a target object, in an image to be processed, so as to obtain a preliminarily segmented image corresponding to the image to be processed (S11); and according to edge information of the target object in the image to be processed, adjusting, in the preliminarily segmented image, a pixel value of the pixel, which is predicted not to belong to the target object, in a closed area included in an edge of the target object, so as to obtain a first segmentation result corresponding to the image to be processed (S12).

Description

图像分割方法及装置、电子设备和存储介质Image segmentation method and device, electronic device and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开基于申请号为202010827077.1、申请日为2020年08月17日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。The present disclosure is based on a Chinese patent application with application number 202010827077.1 and an application date of August 17, 2020, and claims the priority of the Chinese patent application, the entire contents of which are incorporated herein by reference.
技术领域technical field
本公开涉及图像处理技术领域,尤其涉及一种图像分割方法及装置、电子设备和存储介质。The present disclosure relates to the technical field of image processing, and in particular, to an image segmentation method and device, an electronic device and a storage medium.
背景技术Background technique
图像分割是指把图像分成若干个特定的、具有独特性质的区域并提出感兴趣目标的技术和过程。图像分割是由图像处理到图像分析的关键步骤。相关技术中的图像分割方法主要分为以下几类:基于阈值的分割方法、基于区域的分割方法、基于边缘的分割方法以及基于特定理论的分割方法等。Image segmentation refers to the technology and process of dividing an image into several specific regions with unique properties and proposing objects of interest. Image segmentation is a key step from image processing to image analysis. Image segmentation methods in the related art are mainly divided into the following categories: threshold-based segmentation methods, region-based segmentation methods, edge-based segmentation methods, and specific theory-based segmentation methods.
发明内容SUMMARY OF THE INVENTION
本公开提供了一种图像分割方法及装置、电子设备和存储介质。The present disclosure provides an image segmentation method and device, an electronic device and a storage medium.
根据本公开的一方面,提供了一种图像分割方法,包括:According to an aspect of the present disclosure, an image segmentation method is provided, comprising:
预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像;Predict the pixels belonging to the target object in the image to be processed, and obtain a preliminary segmented image corresponding to the image to be processed;
根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果。According to the edge information of the target object in the to-be-processed image, in the preliminary segmented image, the pixel values of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the target object are determined. Adjustment is performed to obtain a first segmentation result corresponding to the image to be processed.
通过预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像,根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果,由此能够得到更准确、鲁棒的分割结果。By predicting the pixels belonging to the target object in the image to be processed, a preliminary segmented image corresponding to the image to be processed is obtained, and according to the edge information of the target object in the image to be processed, in the preliminary segmented image, the In the enclosed area included in the edge of the target object, the predicted pixel values of the pixels that do not belong to the target object are adjusted to obtain the first segmentation result corresponding to the to-be-processed image, so that a more accurate and robust image can be obtained. Split result.
在一种可能的实现方式中,在所述初步分割图像中,预测的属于所述目标对象的像素的像素值为第一预设值,预测的不属于所述目标对象的像素的像素值为第二预设值;In a possible implementation manner, in the preliminary segmented image, the predicted pixel value of the pixel belonging to the target object is a first preset value, and the predicted pixel value of the pixel not belonging to the target object is the first preset value. the second preset value;
所述根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果,包括:According to the edge information of the target object in the image to be processed, in the preliminary segmented image, in the closed area included in the edge of the target object, the predicted pixels that do not belong to the target object are analyzed. The pixel value is adjusted to obtain the first segmentation result corresponding to the to-be-processed image, including:
将所述初步分割图像中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到填充后的初步分割图像;Adjusting the pixel value of the closed area whose pixel value is the second preset value in the preliminary segmented image to the first preset value, to obtain a filled preliminary segmented image;
根据所述待处理图像中所述目标对象的边缘信息,对所述填充后的初步分割图像的像素值进行调整,得到所述待处理图像对应的所述第一分割结果。According to the edge information of the target object in the to-be-processed image, the pixel values of the filled preliminary segmented image are adjusted to obtain the first segmentation result corresponding to the to-be-processed image.
该实现方式通过将所述初步分割图像中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到填充后的初步分割图像,由此能够使待处理图像对应的第一分割结果覆盖目标对象的器官内部,例如覆盖肺内等肺实质部分、消化道(例如胃肠道)的内部等。即,通过采用上述实现方式,能够将图像分割后目标对象内部(例如人体内)漏掉的空洞补上。通过根据所述待处理图像中所述目标对象的边缘信息,对所述填充后的初步分割图像的像素值进行调整,得到所述待处理图像对应的第一分割结果,由此能够减小将待处理图像中的背景部分(即不属于目标对象的部分)分割为属于目标对象的概率。In this implementation manner, a filled preliminary segmented image is obtained by adjusting the pixel value of the closed area whose pixel value is the second preset value in the preliminary segmented image to the first preset value, thereby enabling the The first segmentation result corresponding to the processed image covers the inside of the organ of the target object, for example, covers the lung parenchyma such as the lung, the inside of the digestive tract (eg, the gastrointestinal tract), and the like. That is, by adopting the above-mentioned implementation manner, the missing holes in the target object (for example, in the human body) after image segmentation can be filled. By adjusting the pixel values of the filled preliminary segmented image according to the edge information of the target object in the to-be-processed image, the first segmentation result corresponding to the to-be-processed image can be obtained, thereby reducing the The background part in the image to be processed (ie the part that does not belong to the target object) is divided into the probability of belonging to the target object.
在一种可能的实现方式中,所述将所述初步分割图像中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到填充后的初步分割图像,包括:In a possible implementation manner, adjusting the pixel value of the enclosed area with the pixel value of the second preset value in the preliminary segmented image to the first preset value to obtain the filled preliminary segmentation images, including:
在所述初步分割图像的周围拼接预设宽度的边,得到拼接后的初步分割图像,其中,拼接的所述预设宽度的边的像素的像素值为所述第二预设值;Splicing edges of preset widths around the preliminary segmented images to obtain a preliminarily segmented image after splicing, wherein the pixel values of the pixels of the edges of the spliced preset widths are the second preset values;
选取所述拼接后的初步分割图像的图像边缘的像素作为种子点,对所述拼接后的初步分割图像进行 泛洪填充操作,得到所述填充后的初步分割图像。Select the pixel of the image edge of the preliminarily segmented image after the splicing as a seed point, and perform a flood filling operation on the preliminarily segmented image after the splicing to obtain the preliminarily segmented image after the filling.
通过在所述初步分割图像的周围拼接预设宽度的边,再选取所述拼接后的初步分割图像的图像边缘的像素作为种子点,由此能够保证泛洪填充操作的种子点属于背景部分(即不属于目标对象的部分),从而能够使待处理图像对应的第一分割结果覆盖目标对象的器官内部,进而得到更准确的分割结果。By splicing the edge of the preset width around the preliminary segmented image, and then selecting the pixel of the image edge of the preliminarily segmented image after splicing as the seed point, it can be ensured that the seed point of the flood filling operation belongs to the background part ( That is, the part that does not belong to the target object), so that the first segmentation result corresponding to the image to be processed can cover the inside of the organ of the target object, thereby obtaining a more accurate segmentation result.
在一种可能的实现方式中,所述根据所述待处理图像中所述目标对象的边缘信息,对所述填充后的初步分割图像的像素值进行调整,得到所述待处理图像对应的所述第一分割结果,包括:In a possible implementation manner, the pixel value of the filled preliminary segmented image is adjusted according to the edge information of the target object in the to-be-processed image to obtain the corresponding pixel value of the to-be-processed image. Describe the first segmentation result, including:
根据所述待处理图像中所述目标对象的边缘信息,确定所述填充后的初步分割图像中所述目标对象的边缘所包含的最大连通域;According to the edge information of the target object in the image to be processed, determine the maximum connected domain included in the edge of the target object in the filled preliminary segmented image;
将所述填充后的初步分割图像中所述最大连通域之外的像素的像素值调整为所述第二预设值,得到所述待处理图像对应的所述第一分割结果。The pixel values of the pixels outside the maximum connected region in the filled preliminary segmented image are adjusted to the second preset value to obtain the first segmentation result corresponding to the to-be-processed image.
根据该实现方式,能够剔除不与目标对象相连的假阳区域,由此能够大大降低将背景部分错误地划分为属于目标对象的概率,从而能够提高图像分割的准确性。例如,目标对象为人体,则根据该示例能够剔除不与人体相连的假阳区域,由此能够大大降低背景部分(例如床板等)错误地划分为属于人体的概率。According to this implementation, false positive regions that are not connected to the target object can be eliminated, thereby greatly reducing the probability of erroneously classifying the background part as belonging to the target object, thereby improving the accuracy of image segmentation. For example, if the target object is a human body, according to this example, false positive regions that are not connected to the human body can be eliminated, thereby greatly reducing the probability that the background part (eg, bed board, etc.) is erroneously classified as belonging to the human body.
在一种可能的实现方式中,在所述得到所述待处理图像对应的第一分割结果之后,所述方法还包括:In a possible implementation manner, after obtaining the first segmentation result corresponding to the image to be processed, the method further includes:
获取与所述待处理图像相邻的图像以及所述相邻的图像对应的第二分割结果;acquiring an image adjacent to the to-be-processed image and a second segmentation result corresponding to the adjacent image;
根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果。According to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, adjust the first segmentation result to obtain a third segmentation result corresponding to the to-be-processed image .
根据该实现方式,能够保证待处理图像与第二分割结果的连续性,从而有助于得到更平滑、准确的三维分割结果。例如,所述目标对象为人体,则可以保证待处理图像与相邻的图像中人体的连续性,从而有助于得到更平滑、准确的三维人体分割结果。例如,可以采用该实现方式得到CT图像序列中的各个CT图像对应的分割结果,由此得到更平滑、准确的三维人体分割结果。According to this implementation manner, the continuity of the image to be processed and the second segmentation result can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional segmentation result. For example, if the target object is a human body, the continuity of the image to be processed and the human body in the adjacent images can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional human body segmentation result. For example, the segmentation result corresponding to each CT image in the CT image sequence can be obtained by using this implementation manner, thereby obtaining a smoother and more accurate three-dimensional human body segmentation result.
在一种可能的实现方式中,所述根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果,包括:In a possible implementation manner, the first segmentation result is adjusted according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, to obtain The third segmentation result corresponding to the image to be processed includes:
根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述第一分割结果,得到所述待处理图像对应的所述第三分割结果。According to the pixels in the adjacent images that belong to the target object in the second segmentation result and have a difference value of the pixel value at the same position as the image to be processed is less than or equal to a third preset value, The first segmentation result is adjusted to obtain the third segmentation result corresponding to the image to be processed.
通过根据所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果,由此能够根据所述相邻的图像中与所述待处理图像较为相关的像素对应的分割结果,对所述待处理图像对应的第一分割结果进行调整,从而有助于提高所述待处理图像对应的最终分割结果的准确性。By adjusting the first segmentation result according to the pixels in the second segmentation result that belong to the target object and whose pixel values at the same position as the to-be-processed image differ by less than or equal to a third preset value, The third segmentation result corresponding to the image to be processed is obtained, so that the first segmentation corresponding to the image to be processed can be divided according to the segmentation result corresponding to the pixels in the adjacent images that are relatively related to the image to be processed The result is adjusted, thereby helping to improve the accuracy of the final segmentation result corresponding to the image to be processed.
在一种可能的实现方式中,所述根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述第一分割结果,得到所述待处理图像对应的所述第三分割结果,包括:In a possible implementation manner, according to the adjacent images, in the second segmentation result, the difference value of the pixel values belonging to the target object and at the same position as the image to be processed For pixels less than or equal to the third preset value, adjust the first segmentation result to obtain the third segmentation result corresponding to the image to be processed, including:
根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集;Obtain the first pixel set according to the pixel whose difference value of the pixel value at the same position in the image to be processed and the adjacent image is less than or equal to the third preset value;
根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集;obtaining a second pixel set according to the pixels belonging to the target object in the second segmentation result in the first pixel set;
将所述第一分割结果中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的所述第三分割结果。Adjusting the pixels of the second pixel set in the first segmentation result to belong to the target object to obtain the third segmentation result corresponding to the image to be processed.
通过根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集,根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集,并将所述第一分割结果中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的第三分割结果,由此能够根据所述第二分割结果中属于所述目标对象、且与所述待处理图像较为相关的像素,对所述待处理图像对应的第一分割结果进行调整,从而有助于提高所述待处理图像对应的最终分割结果的准确性。A first pixel set is obtained according to the pixels whose difference between the pixel values at the same position in the image to be processed and the adjacent image is less than or equal to a third preset value, and according to the first pixel set at the same position The pixels belonging to the target object in the second segmentation result are obtained to obtain a second pixel set, and the pixels of the second pixel set in the first segmentation result are adjusted to belong to the target object to obtain the to-be-processed The third segmentation result corresponding to the image, so that the first segmentation result corresponding to the image to be processed can be processed according to the pixels in the second segmentation result that belong to the target object and are relatively related to the image to be processed. adjustment, thereby helping to improve the accuracy of the final segmentation result corresponding to the image to be processed.
在一种可能的实现方式中,In one possible implementation,
在所述预测待处理图像中属于目标对象的像素之前,所述方法还包括:根据训练图像和所述训练图像的标注数据训练神经网络,其中,所述训练图像的标注数据包括所述训练图像中属于所述目标对象的像素的真值;Before predicting the pixels belonging to the target object in the image to be processed, the method further includes: training a neural network according to the training image and labeling data of the training image, wherein the labeling data of the training image includes the training image The true value of the pixels belonging to the target object in ;
所述预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像,包括:将所述待处理图像输入所述神经网络,通过所述神经网络预测所述待处理图像中属于所述目标对象的像素的信息;根据所述待处理图像中属于所述目标对象的像素的信息,得到所述待处理图像对应的初步分割 图像。The predicting the pixels belonging to the target object in the image to be processed to obtain a preliminary segmented image corresponding to the image to be processed includes: inputting the image to be processed into the neural network, and predicting the image to be processed through the neural network According to the information of the pixels belonging to the target object in the to-be-processed image, a preliminary segmented image corresponding to the to-be-processed image is obtained.
在该实现方式中,通过所述神经网络预测所述待处理图像中属于目标对象的部分。例如,所述待处理图像是CT图像,所述目标对象是人体,则该实现方式不考虑将CT图像中各种各样的床板剔除,即不再关注非人体的部分,而是将重点放在CT图像中的人体部分的分割,从而能够保证在大量异形床板数据下分割结果的准确性和鲁棒性。即,即使待处理图像中包含异形床板,采用该实现方式也能获得准确、鲁棒的分割结果。In this implementation manner, the part of the image to be processed that belongs to the target object is predicted by the neural network. For example, if the image to be processed is a CT image, and the target object is a human body, this implementation does not consider removing various bedboards in the CT image, that is, no longer focuses on the non-human body part, but focuses on The segmentation of the human body in the CT image can ensure the accuracy and robustness of the segmentation results under a large amount of special-shaped bed plate data. That is, even if the image to be processed contains a special-shaped bed plate, an accurate and robust segmentation result can be obtained by adopting this implementation manner.
在一种可能的实现方式中,In one possible implementation,
所述训练图像为电子计算机断层扫描CT图像;The training image is an electronic computed tomography CT image;
所述根据训练图像和所述训练图像的标注数据训练神经网络,包括:根据预设的CT值范围,对所述训练图像的像素值进行归一化处理,得到归一化的训练图像;根据所述归一化的训练图像和所述训练图像的标注数据训练所述神经网络。The training of the neural network according to the training image and the labeled data of the training image includes: normalizing the pixel values of the training image according to a preset CT value range to obtain a normalized training image; The normalized training image and the labeled data of the training image train the neural network.
在该实现方式中,根据预设的CT值范围,对所述训练图像的像素值进行归一化处理,得到归一化的训练图像,并根据所述归一化的训练图像和所述训练图像的标注数据训练所述神经网络,由此有助于降低所述神经网络的计算量,提高所述神经网络的收敛速度。In this implementation manner, the pixel values of the training image are normalized according to a preset CT value range to obtain a normalized training image, and according to the normalized training image and the training image The labeled data of the image trains the neural network, thereby helping to reduce the computational load of the neural network and improve the convergence speed of the neural network.
根据本公开的一方面,提供了一种图像分割方法,包括:According to an aspect of the present disclosure, an image segmentation method is provided, comprising:
预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像;Predict the pixels belonging to the target object in the image to be processed, and obtain a preliminary segmented image corresponding to the image to be processed;
获取与所述待处理图像相邻的图像以及所述相邻的图像对应的第二分割结果;acquiring an image adjacent to the to-be-processed image and a second segmentation result corresponding to the adjacent image;
根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果。According to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, the preliminary segmented image is adjusted to obtain a fourth segmentation result corresponding to the to-be-processed image.
在一种可能的实现方式中,所述根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果,包括:In a possible implementation manner, according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, the preliminary segmented image is adjusted to obtain the The fourth segmentation result corresponding to the image to be processed includes:
根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果。According to the pixels in the adjacent images that belong to the target object in the second segmentation result and have a difference value of the pixel value at the same position as the image to be processed is less than or equal to a third preset value, Adjust the preliminary segmented image to obtain a fourth segmentation result corresponding to the to-be-processed image.
在一种可能的实现方式中,所述根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果,包括:In a possible implementation manner, according to the adjacent images, in the second segmentation result, the difference value of the pixel values belonging to the target object and at the same position as the image to be processed For pixels less than or equal to the third preset value, adjust the preliminary segmented image to obtain a fourth segmentation result corresponding to the to-be-processed image, including:
根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集;Obtain the first pixel set according to the pixel whose difference value of the pixel value at the same position in the image to be processed and the adjacent image is less than or equal to the third preset value;
根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集;obtaining a second pixel set according to the pixels belonging to the target object in the second segmentation result in the first pixel set;
将所述初步分割图像中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的第四分割结果。The pixels of the second pixel set in the preliminary segmented image are adjusted to belong to the target object, and a fourth segmentation result corresponding to the to-be-processed image is obtained.
根据本公开的一方面,提供了一种图像分割装置,包括:According to an aspect of the present disclosure, an image segmentation apparatus is provided, comprising:
第一分割部分,配置为预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像;a first segmentation part, configured to predict pixels belonging to the target object in the to-be-processed image, and obtain a preliminary segmented image corresponding to the to-be-processed image;
第一调整部分,配置为根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果。The first adjustment part is configured to, according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image, predict that in the enclosed area included in the edge of the target object, those that do not belong to the The pixel values of the pixels of the target object are adjusted to obtain a first segmentation result corresponding to the image to be processed.
在一种可能的实现方式中,在所述初步分割图像中,预测的属于所述目标对象的像素的像素值为第一预设值,预测的不属于所述目标对象的像素的像素值为第二预设值;In a possible implementation manner, in the preliminary segmented image, the predicted pixel value of the pixel belonging to the target object is a first preset value, and the predicted pixel value of the pixel not belonging to the target object is the first preset value. the second preset value;
所述第一调整模块用于:The first adjustment module is used for:
将所述初步分割图像中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到填充后的初步分割图像;Adjusting the pixel value of the closed area whose pixel value is the second preset value in the preliminary segmented image to the first preset value, to obtain a filled preliminary segmented image;
根据所述待处理图像中所述目标对象的边缘信息,对所述填充后的初步分割图像的像素值进行调整,得到所述待处理图像对应的第一分割结果。According to the edge information of the target object in the to-be-processed image, the pixel values of the filled preliminary segmented image are adjusted to obtain a first segmentation result corresponding to the to-be-processed image.
在一种可能的实现方式中,所述第一调整模块用于:In a possible implementation manner, the first adjustment module is used for:
在所述初步分割图像的周围拼接预设宽度的边,得到拼接后的初步分割图像,其中,拼接的所述预设宽度的边的像素的像素值为所述第二预设值;Splicing edges of preset widths around the preliminary segmented images to obtain a preliminarily segmented image after splicing, wherein the pixel values of the pixels of the edges of the spliced preset widths are the second preset values;
选取所述拼接后的初步分割图像的图像边缘的像素作为种子点,对所述拼接后的初步分割图像进行泛洪填充操作,得到填充后的初步分割图像。Selecting the pixels of the image edge of the spliced preliminary segmented image as seed points, and performing a flood filling operation on the spliced preliminary segmented image to obtain a filled preliminary segmented image.
在一种可能的实现方式中,所述第一调整模块用于:In a possible implementation manner, the first adjustment module is used for:
根据所述待处理图像中所述目标对象的边缘信息,确定所述填充后的初步分割图像中所述目标对象 的边缘所包含的最大连通域;According to the edge information of the target object in the to-be-processed image, determine the maximum connected domain included in the edge of the target object in the filled preliminary segmented image;
将所述填充后的初步分割图像中所述最大连通域之外的像素的像素值调整为所述第二预设值,得到所述待处理图像对应的第一分割结果。The pixel values of the pixels outside the maximum connected region in the filled preliminary segmented image are adjusted to the second preset value to obtain the first segmentation result corresponding to the to-be-processed image.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:
第二获取模块,用于获取与所述待处理图像相邻的图像以及所述相邻的图像对应的第二分割结果;a second acquisition module, configured to acquire an image adjacent to the to-be-processed image and a second segmentation result corresponding to the adjacent image;
第三调整模块,用于根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果。A third adjustment module, configured to adjust the first segmentation result according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, to obtain the to-be-processed image The third segmentation result corresponding to the image.
在一种可能的实现方式中,所述第三调整模块用于:In a possible implementation manner, the third adjustment module is used for:
根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果。According to the pixels in the adjacent images that belong to the target object in the second segmentation result and have a difference value of the pixel value at the same position as the image to be processed is less than or equal to a third preset value, Adjust the first segmentation result to obtain a third segmentation result corresponding to the to-be-processed image.
在一种可能的实现方式中,所述第三调整模块用于:In a possible implementation manner, the third adjustment module is used for:
根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集;Obtain the first pixel set according to the pixel whose difference value of the pixel value at the same position in the image to be processed and the adjacent image is less than or equal to the third preset value;
根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集;obtaining a second pixel set according to the pixels belonging to the target object in the second segmentation result in the first pixel set;
将所述第一分割结果中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的第三分割结果。Adjusting the pixels of the second pixel set in the first segmentation result to belong to the target object to obtain a third segmentation result corresponding to the image to be processed.
在一种可能的实现方式中,In one possible implementation,
所述装置还包括:训练模块,用于根据训练图像和所述训练图像的标注数据训练神经网络,其中,所述训练图像的标注数据包括所述训练图像中属于所述目标对象的像素的真值;The device further includes: a training module for training a neural network according to the training image and the labeling data of the training image, wherein the labeling data of the training image includes the true values of the pixels belonging to the target object in the training image. value;
所述第一分割模块用于:将待处理图像输入所述神经网络,通过所述神经网络预测所述待处理图像中属于目标对象的像素的信息;根据所述待处理图像中属于所述目标对象的像素的信息,得到所述待处理图像对应的初步分割图像。The first segmentation module is used for: inputting the image to be processed into the neural network, and predicting the information of the pixels belonging to the target object in the image to be processed through the neural network; The pixel information of the object is obtained to obtain a preliminary segmented image corresponding to the to-be-processed image.
在一种可能的实现方式中,In one possible implementation,
所述训练图像为电子计算机断层扫描CT图像;The training image is an electronic computed tomography CT image;
所述训练模块用于:根据预设的CT值范围,对所述训练图像的像素值进行归一化处理,得到归一化的训练图像;根据所述归一化的训练图像和所述训练图像的标注数据训练所述神经网络。The training module is used for: normalizing the pixel values of the training image according to a preset CT value range to obtain a normalized training image; according to the normalized training image and the training image The labeled data of the images trains the neural network.
根据本公开的一方面,提供了一种图像分割装置,包括:According to an aspect of the present disclosure, an image segmentation apparatus is provided, comprising:
第二分割部分,配置为预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像;The second segmentation part is configured to predict the pixels belonging to the target object in the to-be-processed image, and obtain a preliminary segmented image corresponding to the to-be-processed image;
第一获取部分,配置为获取与所述待处理图像相邻的图像以及所述相邻的图像对应的第二分割结果;a first acquiring part, configured to acquire an image adjacent to the to-be-processed image and a second segmentation result corresponding to the adjacent image;
第二调整部分,配置为根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果。The second adjustment part is configured to adjust the preliminary segmented image according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image and the second segmentation result to obtain the image to be processed The corresponding fourth segmentation result.
在一种可能的实现方式中,所述第二调整模块用于:In a possible implementation manner, the second adjustment module is used for:
根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果。According to the pixels in the adjacent images that belong to the target object in the second segmentation result and have a difference value of the pixel value at the same position as the image to be processed is less than or equal to a third preset value, The preliminary segmented image is adjusted to obtain a fourth segmentation result corresponding to the to-be-processed image.
在一种可能的实现方式中,所述第二调整模块用于:In a possible implementation manner, the second adjustment module is used for:
根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集;Obtain the first pixel set according to the pixel whose difference value of the pixel value at the same position in the image to be processed and the adjacent image is less than or equal to the third preset value;
根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集;Obtain a second pixel set according to the pixels belonging to the target object in the second segmentation result in the first pixel set;
将所述初步分割图像中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的第四分割结果。The pixels of the second pixel set in the preliminary segmented image are adjusted to belong to the target object, and a fourth segmentation result corresponding to the to-be-processed image is obtained.
根据本公开的一方面,提供了一种电子设备,包括:一个或多个处理器;配置为存储可执行指令的存储器;其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行上述图像分割方法。According to an aspect of the present disclosure, there is provided an electronic device comprising: one or more processors; a memory configured to store executable instructions; wherein the one or more processors are configured to invoke the memory storage executable instructions to perform the above image segmentation method.
根据本公开的一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。According to an aspect of the present disclosure, there is provided a computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the above method when executed by a processor.
在本公开实施例中,通过预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像,根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果,由此能够得到更准确、鲁棒的分割结果。In the embodiment of the present disclosure, a preliminary segmented image corresponding to the to-be-processed image is obtained by predicting the pixels belonging to the target object in the to-be-processed image, and according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image In dividing the image, the pixel values of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the target object are adjusted to obtain the first segmentation result corresponding to the image to be processed. Get more accurate and robust segmentation results.
根据本公开的一方面,提供了一种计算机程序,包括计算机可读代码,在所述计算机可读代码在电子设备中运行的情况下,所述电子设备中的处理器执行上述图像分割方法。According to an aspect of the present disclosure, there is provided a computer program including computer-readable codes, where, when the computer-readable codes are executed in an electronic device, a processor in the electronic device executes the above-mentioned image segmentation method.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the technical solutions of the present disclosure.
图1-1为本公开实施例提供的图像分割方法应用场景示意图一;1-1 is a schematic diagram 1 of an application scenario of an image segmentation method provided by an embodiment of the present disclosure;
图1-2为本公开实施例提供的图像分割方法应用场景示意图二;1-2 is a second schematic diagram of an application scenario of an image segmentation method provided by an embodiment of the present disclosure;
图2为本公开实施例提供的图像分割方法的流程图;2 is a flowchart of an image segmentation method provided by an embodiment of the present disclosure;
图3为本公开实施例提供的U型卷积神经网络的示意图;3 is a schematic diagram of a U-shaped convolutional neural network provided by an embodiment of the present disclosure;
图4为本公开实施例提供的在初步分割图像的周围拼接预设宽度的边,得到拼接后的初步分割图像的示意图;4 is a schematic diagram of splicing edges of a preset width around a preliminary segmented image to obtain a preliminarily segmented image after splicing, according to an embodiment of the present disclosure;
图5为本公开另一实施例提供的图像分割方法流程图;5 is a flowchart of an image segmentation method provided by another embodiment of the present disclosure;
图6为本公开实施例提供的图像分割装置的框图;FIG. 6 is a block diagram of an image segmentation apparatus provided by an embodiment of the present disclosure;
图7为本公开实施例提供的图像分割装置的另一框图;FIG. 7 is another block diagram of an image segmentation apparatus provided by an embodiment of the present disclosure;
图8为本公开实施例提供的一种电子设备800的框图;FIG. 8 is a block diagram of an electronic device 800 according to an embodiment of the present disclosure;
图9为本公开实施例提供的一种电子设备1900的框图。FIG. 9 is a block diagram of an electronic device 1900 according to an embodiment of the present disclosure.
具体实施方式detailed description
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures denote elements that have the same or similar functions. While various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases. In addition, the term "at least one" herein refers to any combination of any one of the plurality or at least two of the plurality, for example, including at least one of A, B, and C, and may mean including from A, B, and C. Any one or more elements selected from the set of B and C.
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are set forth in the following detailed description. It will be understood by those skilled in the art that the present disclosure may be practiced without certain specific details. In some instances, methods, means, components and circuits well known to those skilled in the art have not been described in detail so as not to obscure the subject matter of the present disclosure.
在对人体进行电子计算机断层扫描(Computed Tomography,CT)的过程中,CT仪器的床板会成为扫描出的CT图像序列中的伪影。这种伪影在计算机辅助软件进行人体的三维可视化(即,根据CT图像序列得到三维的人体模型)以及后续的处理过程中,将会产生很大的干扰。这是因为,各种形状的床板在三维可视化时会遮挡人体,且对人体内的器官进行分割时,人体外部的某些异形床板将有可能被识别为假阳。In the process of performing Computed Tomography (CT) on the human body, the bed plate of the CT instrument will become an artifact in the scanned CT image sequence. This kind of artifact will cause great interference in the 3D visualization of the human body by the computer-aided software (ie, the 3D human body model obtained from the CT image sequence) and the subsequent processing. This is because bed boards of various shapes will block the human body during 3D visualization, and when the organs in the human body are segmented, some special-shaped bed boards outside the human body may be identified as false positives.
相关技术中,对CT图像进行人体分割时,主要通过阈值和形态学操作去除CT图像中的床板,保留CT图像中的人体部分。通常,床板的形状、床板在CT图像中的CT值、床板在CT图像中的CT值的均匀程度均与人体有着显著的区别,通过阈值和形态学操作的方法可以去除。然而,对于某些异常情况,相关技术无法得到准确的分割结果。例如,与人体贴合较为紧密的曲面皮质床板,在CT图像中与人体贴合紧密,分界不明显,CT值也较为接近,难以与人体分割开。又如,床板两侧有挡板,人体的胳膊放在了挡板外,将挡板夹在身体两侧,在这种情况下,相关技术也难以从CT图像中分割出床板。其中,CT值是测定人体某一局部组织或器官密度大小的一种计算单位,也称为亨氏单位(Hounsfield Unit,HU)。In the related art, when performing human body segmentation on a CT image, the bed board in the CT image is mainly removed through threshold and morphological operations, and the human body part in the CT image is retained. Usually, the shape of the bed plate, the CT value of the bed plate in the CT image, and the uniformity of the CT value of the bed plate in the CT image are significantly different from those of the human body, which can be removed by thresholding and morphological manipulation. However, for some abnormal situations, related technologies cannot obtain accurate segmentation results. For example, a curved cortical bed board that fits closely with the human body is closely fitted with the human body in the CT image, the demarcation is not obvious, and the CT value is relatively close, so it is difficult to separate it from the human body. For another example, there are baffles on both sides of the bed board, and the arms of the human body are placed outside the baffles, and the baffles are clamped on both sides of the body. In this case, it is also difficult for related technologies to segment the bed board from the CT image. Among them, CT value is a calculation unit for measuring the density of a local tissue or organ in the human body, also known as Hounsfield Unit (HU).
为了解决类似上文所述的技术问题,本公开实施例提供了一种图像分割方法及装置、电子设备和存储介质,通过预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像,根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分 割结果,由此能够得到更准确、鲁棒的分割结果。In order to solve the technical problems similar to those described above, the embodiments of the present disclosure provide an image segmentation method and device, an electronic device, and a storage medium. By predicting the pixels belonging to the target object in the to-be-processed image, the corresponding The preliminary segmented image, according to the edge information of the target object in the image to be processed, in the preliminary segmented image, in the closed area included in the edge of the target object, the predicted object does not belong to the target object The pixel value of the pixel is adjusted to obtain the first segmentation result corresponding to the to-be-processed image, so that a more accurate and robust segmentation result can be obtained.
所述图像分割方法的执行主体可以是图像分割装置。例如,所述图像分割方法可以由终端设备或服务器或其它处理设备执行。其中,终端设备可以是用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备或者可穿戴设备等。在一些可能的实现方式中,所述图像分割方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。The executing subject of the image segmentation method may be an image segmentation device. For example, the image segmentation method may be performed by a terminal device or a server or other processing device. The terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, or a wearable devices, etc. In some possible implementations, the image segmentation method may be implemented by a processor invoking computer-readable instructions stored in a memory.
下面,将说明本公开实施例提供的图像分割方法的应用场景。Next, application scenarios of the image segmentation method provided by the embodiments of the present disclosure will be described.
在一种可能的实现方式中,参考图1-1所示的一种图像分割方法应用场景示意图一,图像分割装置10可以包括处理装置11和图像采集装置12,这样,图像分割装置11可以通过图像采集装置12采集待分割图像,通过处理装置12对待分割图像进行分割处理得到第一分割结果。例如,图像分割装置可以实施为CT机,通过CT扫描仪采集待分割的CT图像,并对采集到的待分割CT图像进行图像分割处理。In a possible implementation manner, referring to schematic diagram 1 of an application scenario of an image segmentation method shown in FIG. 1-1 , the image segmentation device 10 may include a processing device 11 and an image acquisition device 12. In this way, the image segmentation device 11 can pass The image acquisition device 12 acquires the image to be divided, and the processing device 12 performs segmentation processing on the to-be-divided image to obtain a first segmentation result. For example, the image segmentation device may be implemented as a CT machine, and a CT image to be segmented is acquired by a CT scanner, and image segmentation processing is performed on the acquired CT image to be segmented.
在另一种可能的实现方式中,参考图1-2所示的一种图像分割方法应用场景示意图二,图像分割装置10可以通过接收其他设备13通过网络14传送的实时采集到的待分割图像,这样,图像分割装置10可以对接收到的待分割图像,进行分割处理得到第一分割结果。例如,图像分割装置可以实施为智能手机,智能手机可以通过网络接收CT机发送的待分割的CT图像,这样,智能手机可以对接收到的待分割CT图像进行图像分割处理。In another possible implementation manner, referring to the second schematic diagram of an application scenario of an image segmentation method shown in FIGS. 1-2 , the image segmentation apparatus 10 can receive the real-time collected images to be segmented transmitted by other devices 13 through the network 14 . , in this way, the image segmentation device 10 can perform segmentation processing on the received image to be segmented to obtain the first segmentation result. For example, the image segmentation device can be implemented as a smart phone, and the smart phone can receive the CT image to be segmented sent by the CT machine through the network, so that the smart phone can perform image segmentation processing on the received CT image to be segmented.
基于上述应用场景,对本公开实施例提供的一种图像分割方法进行描述,图1示出本公开实施例提供的图像分割方法的流程图。如图2所示,所述图像分割方法包括步骤S11和步骤S12。Based on the above application scenario, an image segmentation method provided by an embodiment of the present disclosure is described. FIG. 1 shows a flowchart of the image segmentation method provided by an embodiment of the present disclosure. As shown in FIG. 2, the image segmentation method includes step S11 and step S12.
在步骤S11中,预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像。In step S11, pixels belonging to the target object in the image to be processed are predicted, and a preliminary segmented image corresponding to the image to be processed is obtained.
在本公开实施例中,待处理图像可以表示需要进行图像分割的图像。所述待处理图像可以是二维图像,也可以是三维图像。在一种可能的实现方式中,所述待处理图像可以是医学图像。例如,所述待处理图像可以是CT图像、MRI(Magnetic Resonance Imaging,磁共振成像)图像等。当然,所述待处理图像也可以是医学图像以外的任何需要进行图像分割的图像。In this embodiment of the present disclosure, the image to be processed may represent an image that needs to be segmented. The to-be-processed image may be a two-dimensional image or a three-dimensional image. In a possible implementation, the image to be processed may be a medical image. For example, the image to be processed may be a CT image, an MRI (Magnetic Resonance Imaging, magnetic resonance imaging) image, and the like. Of course, the to-be-processed image can also be any image that needs to be segmented other than medical images.
在本公开实施例中,目标对象可以表示需要分割的对象。例如,目标对象可以是人体、动物体、人体的器官、动物体的器官等。In this embodiment of the present disclosure, the target object may represent an object that needs to be segmented. For example, the target object may be a human body, an animal body, an organ of a human body, an organ of an animal body, or the like.
在本公开实施例中,可以预测待处理图像中的各个像素是否属于目标对象。例如,可以预测待处理图像中的各个像素属于目标对象的概率。对于待处理图像中的任一像素,若该像素属于目标对象的概率大于或等于预设阈值,则可以判定该像素属于目标对象;若该像素属于目标对象的概率小于预设阈值,则可以判定该像素不属于目标对象。例如,预设阈值可以是0.5。In the embodiment of the present disclosure, it can be predicted whether each pixel in the image to be processed belongs to the target object. For example, the probability that each pixel in the image to be processed belongs to the target object can be predicted. For any pixel in the image to be processed, if the probability of the pixel belonging to the target object is greater than or equal to the preset threshold, it can be determined that the pixel belongs to the target object; if the probability of the pixel belonging to the target object is less than the preset threshold, it can be determined The pixel does not belong to the target object. For example, the preset threshold may be 0.5.
在本公开实施例中,根据预测的待处理图像中属于目标对象的像素,可以得到待处理图像对应的二值化的初步分割图像。其中,初步分割图像的尺寸可以与待处理图像相同。例如,待处理图像的高为H,宽为W,则初步分割图像的高也为H,宽也为W。在一种可能的实现方式中,在所述初步分割图像中,预测的属于所述目标对象的像素的像素值为第一预设值,预测的不属于所述目标对象的像素的像素值为第二预设值,第一预设值不等于第二预设值。例如,对于待处理图像中的任一像素,若预测该像素属于目标对象,则初步分割图像中该像素的像素值为第一预设值;若预测该像素不属于目标对象,则初步分割图像中该像素的像素值为第二预设值。例如,第一预设值为1,第二预设值为0,即,初步分割图像中预测的属于目标对象的像素的像素值为1,预测的不属于目标对象的像素的像素值为0。本公开实施例不对第一预设值和第二预设值的取值进行限定,只要第一预设值与第二预设值不同即可。又如,第一预设值可以为0,第二预设值可以为255。In the embodiment of the present disclosure, according to the predicted pixels belonging to the target object in the to-be-processed image, a binarized preliminary segmented image corresponding to the to-be-processed image can be obtained. The size of the preliminary segmented image may be the same as that of the image to be processed. For example, if the height of the image to be processed is H and the width is W, the height of the preliminary segmented image is also H and the width is W. In a possible implementation manner, in the preliminary segmented image, the predicted pixel value of the pixel belonging to the target object is a first preset value, and the predicted pixel value of the pixel not belonging to the target object is the first preset value. The second preset value, the first preset value is not equal to the second preset value. For example, for any pixel in the image to be processed, if the pixel is predicted to belong to the target object, the pixel value of the pixel in the preliminarily segmented image is the first preset value; if it is predicted that the pixel does not belong to the target object, the image is preliminarily segmented The pixel value of the pixel in is the second preset value. For example, the first preset value is 1 and the second preset value is 0, that is, the predicted pixel value of the pixel belonging to the target object in the preliminary segmented image is 1, and the predicted pixel value of the pixel not belonging to the target object is 0 . The embodiments of the present disclosure do not limit the values of the first preset value and the second preset value, as long as the first preset value and the second preset value are different. For another example, the first preset value may be 0, and the second preset value may be 255.
在一种可能的实现方式中,在所述预测待处理图像中属于目标对象的像素之前,所述方法还包括:根据训练图像和所述训练图像的标注数据训练神经网络,其中,所述训练图像的标注数据包括所述训练图像中属于所述目标对象的像素的真值;所述预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像,包括:将待处理图像输入所述神经网络,通过所述神经网络预测所述待处理图像中属于目标对象的像素的信息;根据所述待处理图像中属于所述目标对象的像素的信息,得到所述待处理图像对应的初步分割图像。In a possible implementation manner, before predicting the pixels belonging to the target object in the image to be processed, the method further includes: training a neural network according to the training image and the labeled data of the training image, wherein the training The labeling data of the image includes the true value of the pixels belonging to the target object in the training image; the predicting the pixels belonging to the target object in the image to be processed, and obtaining a preliminary segmented image corresponding to the image to be processed, including: The processed image is input into the neural network, and the neural network is used to predict the information of the pixels belonging to the target object in the to-be-processed image; according to the information of the pixels belonging to the target object in the to-be-processed image, the to-be-processed image is obtained. The image corresponds to the preliminary segmented image.
作为该实现方式的一个示例,所述训练图像的标注数据可以包括所述训练图像对应的掩膜,所述训练图像对应的掩膜的尺寸可以与所述训练图像相同。若在所述训练图像中,任一像素的真值为属于目标对象,则在所述训练图像对应的掩膜中,该像素的像素值可以为第一预设值,例如,第一预设值可以为1;若在所述训练图像中,该像素的真值为不属于目标对象,则在所述训练图像对应的掩膜中,该像素的像素值可以为第二预设值,例如,第二预设值可以为0。当然,所述训练图像的标注数据不限于采用掩膜来表示。例如,所述训练图像的标注数据还可以采用矩阵、表格等方式来表示。As an example of this implementation, the labeled data of the training image may include a mask corresponding to the training image, and the size of the mask corresponding to the training image may be the same as the training image. If in the training image, the true value of any pixel belongs to the target object, in the mask corresponding to the training image, the pixel value of the pixel may be a first preset value, for example, the first preset value The value can be 1; if in the training image, the true value of the pixel does not belong to the target object, then in the mask corresponding to the training image, the pixel value of the pixel can be the second preset value, for example , the second preset value may be 0. Of course, the labeled data of the training image is not limited to be represented by a mask. For example, the labeled data of the training image may also be represented by a matrix, a table, or the like.
在该实现方式中,可以将所述训练图像输入所述神经网络,经由所述神经网络输出所述训练图像的预测分割结果,其中,所述训练图像的预测分割结果可以包括所述训练图像中的各个像素属于目标对象的概率;根据所述训练图像的标注数据,和所述训练图像的预测分割结果,得到所述训练图像对应的损失函数的值;根据所述训练图像对应的损失函数的值,训练所述神经网络。In this implementation manner, the training image may be input into the neural network, and the predicted segmentation result of the training image may be output via the neural network, wherein the predicted segmentation result of the training image may include The probability of each pixel belonging to the target object; according to the labeled data of the training image and the predicted segmentation result of the training image, the value of the loss function corresponding to the training image is obtained; according to the value of the loss function corresponding to the training image value to train the neural network.
作为该实现方式的一个示例,可以根据所述神经网络得到的所述训练图像的预测分割结果,以及所述训练图像的标注数据,得到戴斯(Dice)损失函数的值。例如,所述神经网络得到的训练图像的预测分割结果为P,所述训练图像的标注数据为M,Dice损失函数的值
Figure PCTCN2020138131-appb-000001
在其他示例中,还可以采用交叉熵损失函数等损失函数。
As an example of this implementation, the value of the Dice loss function can be obtained according to the predicted segmentation result of the training image obtained by the neural network and the labeling data of the training image. For example, the predicted segmentation result of the training image obtained by the neural network is P, the labeled data of the training image is M, and the value of the Dice loss function
Figure PCTCN2020138131-appb-000001
In other examples, a loss function such as a cross-entropy loss function may also be employed.
作为该实现方式的一个示例,将所述损失函数的值可以通过反向求导逐层传递给神经网络的各个参数,并可以采用自适应矩阵估计(Adaptive moment estimation,Adam)(例如学习率为0.0003)、随机梯度下降(Stochastic Gradient Descent,SGD)等优化器来更新神经网络的参数。As an example of this implementation, the value of the loss function can be passed to each parameter of the neural network layer by layer through reverse derivation, and adaptive matrix estimation (Adaptive moment estimation, Adam) can be used (for example, the learning rate is 0.0003), Stochastic Gradient Descent (SGD) and other optimizers to update the parameters of the neural network.
作为该实现方式的一个示例,所述神经网络所预测的所述待处理图像中属于目标对象的像素的信息,可以包括所述待处理图像中的各个像素属于目标对象的概率。在该示例中,所述根据所述待处理图像中属于所述目标对象的像素的信息,得到所述待处理图像对应的初步分割图像,可以包括:对于任一像素,若待处理图像中该像素属于目标对象的概率大于或等于预设阈值,则该像素在所述待处理图像对应的初步分割图像中的像素值为第一预设值;若所述待处理图像中该像素属于目标对象的概率小于预设阈值,则该像素在所述待处理图像对应的初步分割图像中的像素值为第二预设值。As an example of this implementation manner, the information of pixels in the image to be processed that are predicted by the neural network and belong to the target object may include the probability that each pixel in the image to be processed belongs to the target object. In this example, the obtaining a preliminary segmented image corresponding to the to-be-processed image according to the information of the pixels belonging to the target object in the to-be-processed image may include: for any pixel, if the If the probability that the pixel belongs to the target object is greater than or equal to the preset threshold, the pixel value of the pixel in the preliminary segmented image corresponding to the image to be processed is the first preset value; if the pixel in the image to be processed belongs to the target object If the probability is less than the preset threshold, the pixel value of the pixel in the preliminary segmented image corresponding to the image to be processed is the second preset value.
作为该实现方式的另一个示例,所述神经网络所预测的所述待处理图像中属于目标对象的像素的信息,可以包括待处理图像中属于目标对象的像素的位置信息。在该示例中,所述根据所述待处理图像中属于所述目标对象的像素的信息,得到所述待处理图像对应的初步分割图像,可以包括:对于任一像素,若所述待处理图像中属于目标对象的像素的位置信息包含该像素的位置,则该像素在所述待处理图像对应的初步分割图像中的像素值为第一预设值;若所述待处理图像中属于目标对象的像素的位置信息不包含该像素的位置,则该像素在所述待处理图像对应的初步分割图像中的像素值为第二预设值。As another example of this implementation manner, the information of the pixels belonging to the target object in the image to be processed predicted by the neural network may include position information of the pixels belonging to the target object in the image to be processed. In this example, the obtaining a preliminary segmented image corresponding to the to-be-processed image according to the information of the pixels belonging to the target object in the to-be-processed image may include: for any pixel, if the to-be-processed image is The position information of the pixel belonging to the target object includes the position of the pixel, then the pixel value of the pixel in the preliminary segmented image corresponding to the image to be processed is the first preset value; if the image to be processed belongs to the target object If the position information of the pixel does not include the position of the pixel, the pixel value of the pixel in the preliminary segmented image corresponding to the image to be processed is the second preset value.
在该实现方式中,通过所述神经网络预测所述待处理图像中属于目标对象的部分。例如,所述待处理图像是CT图像,所述目标对象是人体,则该实现方式不考虑将CT图像中各种各样的床板剔除,即不再关注非人体的部分,而是将重点放在CT图像中的人体部分的分割,从而能够保证在大量异形床板数据下分割结果的准确性和鲁棒性。即,即使待处理图像中包含异形床板,采用该实现方式也能获得准确、鲁棒的分割结果。In this implementation manner, the part of the image to be processed that belongs to the target object is predicted by the neural network. For example, if the image to be processed is a CT image, and the target object is a human body, this implementation does not consider removing various bedboards in the CT image, that is, no longer focuses on the non-human body part, but focuses on The segmentation of the human body in the CT image can ensure the accuracy and robustness of the segmentation results under a large amount of special-shaped bed plate data. That is, even if the image to be processed contains a special-shaped bed plate, an accurate and robust segmentation result can be obtained by adopting this implementation manner.
作为该实现方式的一个示例,所述神经网络可以是基于深度学习的神经网络。例如,所述神经网络可以是U型卷积神经网络。图3所示本公开实施例中的U型卷积神经网络的示意图。在图3中,数据流向是从左到右,U型卷积神经网络包括压缩过程和解压过程。如图3所示,可以将待处理图像裁剪或缩放至尺寸为512×512后,输入所述U型卷积神经网络,通过U型卷积神经网络对待处理图像中的人体部分进行拟合,最后输出初步分割图像。在图3所示的示例中,可以对待处理图像进行4次“卷积-正则化-激活-池化”操作,每次卷积时图像通道数翻倍,池化时图像尺寸减半,图像的通道数从32增加至256,图像尺寸从512×512减小至64×64;再进行4次“上采样-卷积-正则化-激活-卷积-正则化-激活”操作将图像恢复为原尺寸,其中,每次上采样之前都需要合并之前压缩过程中同尺寸的特征图,并且每次卷积都将通道数减半,其中,合并可以采用合并(concatenate)操作;再通过一次卷积和激活操作将图像通道数还原为1并对图像进行归一化。其中,“卷积-正则化-激活”可以替换为残差模块(Residual Block)、深度卷积模块(Inception Block)、稠密模块(Dense Block)等。池化可以采用最大池化或者平均池化,也可以采用步长为2的卷积层替换。As an example of this implementation, the neural network may be a deep learning-based neural network. For example, the neural network may be a U-shaped convolutional neural network. FIG. 3 shows a schematic diagram of a U-shaped convolutional neural network in an embodiment of the present disclosure. In Figure 3, the data flow is from left to right, and the U-shaped convolutional neural network includes a compression process and a decompression process. As shown in Figure 3, after the image to be processed can be cropped or scaled to a size of 512×512, the U-shaped convolutional neural network can be input, and the human body part in the image to be processed can be fitted by the U-shaped convolutional neural network. Finally, output the preliminary segmented image. In the example shown in Figure 3, four "convolution-regularization-activation-pooling" operations can be performed on the image to be processed, the number of image channels is doubled during each convolution, the image size is halved during pooling, and the image The number of channels is increased from 32 to 256, and the image size is reduced from 512 × 512 to 64 × 64; 4 more "upsampling-convolution-regularization-activation-convolution-regularization-activation" operations are performed to restore the image is the original size, in which, the feature maps of the same size in the previous compression process need to be merged before each upsampling, and the number of channels is halved for each convolution, where the merging can use the concatenate operation; The convolution and activation operations restore the number of image channels to 1 and normalize the image. Among them, "convolution-regularization-activation" can be replaced with residual block (Residual Block), depth convolution block (Inception Block), dense block (Dense Block), etc. Pooling can be either max pooling or average pooling, or it can be replaced by a convolutional layer with a stride of 2.
在一个例子中,所述训练图像为二维的CT图像,所述神经网络为二维的卷积神经网络。In one example, the training image is a two-dimensional CT image, and the neural network is a two-dimensional convolutional neural network.
作为该实现方式的一个示例,可以对训练图像进行扩增。例如,可以将训练图像随机缩放0.6至1.4倍,再以512×512的尺寸从缩放后的图像中心裁剪,以获得不同缩放尺度下的相同尺寸的训练图像。相应地,对训练图像对应的掩膜也进行同样的操作。As an example of this implementation, training images can be augmented. For example, the training image can be randomly scaled by a factor of 0.6 to 1.4, and then cropped from the center of the scaled image at a size of 512 × 512 to obtain training images of the same size at different scales. Correspondingly, do the same for the mask corresponding to the training image.
作为该实现方式的一个示例,可以将训练图像分为训练集和验证集。例如,可以按照4:1的比例将训练图像分为训练集和验证集。As an example of this implementation, training images can be divided into training and validation sets. For example, training images can be split into training and validation sets in a 4:1 ratio.
作为该实现方式的一个示例,可以采用训练图像重复训练所述神经网络,直至所述神经网络在验证集上的损失降到0.03以下。As an example of this implementation, the neural network may be repeatedly trained using training images until the loss of the neural network on the validation set falls below 0.03.
由于相关技术通过形态学等操作来对图像进行分割,因此需要引入大量的超参数,例如二值化时所选取的阈值、开/闭操作所进行的次数、腐蚀/膨胀时所选择的结构体大小等,对于不同的人体部分(头、躯干、手、脚蹬)还需要改变阈值才能获得正常的分割结果。而在该实现方式中,通过神经网络对训练图像中的目标对象进行分割,能够广泛应用于同类任务上,不需要设置超参数,因此鲁棒性较高。Since the related technology uses operations such as morphology to segment the image, it is necessary to introduce a large number of hyperparameters, such as the threshold selected during binarization, the number of opening/closing operations, and the structure selected during erosion/dilation. For different human body parts (head, torso, hands, pedals), the threshold value needs to be changed to obtain normal segmentation results. In this implementation, the target object in the training image is segmented through a neural network, which can be widely used in similar tasks without setting hyperparameters, so the robustness is high.
作为该实现方式的一个示例,所述训练图像为电子计算机断层扫描CT图像;所述根据训练图像和所述训练图像的标注数据训练神经网络,包括:根据预设的CT值范围,对所述训练图像的像素值进行归一化处理,得到归一化的训练图像;根据所述归一化的训练图像和所述训练图像的标注数据训练所述神经网络。As an example of this implementation, the training image is an electronic computed tomography CT image; the training of the neural network according to the training image and the labeled data of the training image includes: according to a preset CT value range, performing The pixel values of the training image are normalized to obtain a normalized training image; the neural network is trained according to the normalized training image and the labeled data of the training image.
在一个例子中,可以根据目标对象的CT值范围,确定预设的CT值范围。例如,目标对象为人体,则可以根据人体器官的CT值范围,将预设的CT值范围设置为[-500,1200]。In one example, the preset CT value range may be determined according to the CT value range of the target object. For example, if the target object is the human body, the preset CT value range may be set to [-500, 1200] according to the CT value range of the human body organs.
在一个例子中,所述根据预设的CT值范围,对所述训练图像的像素值进行归一化处理,得到归一化的训练图像,包括:对于所述训练图像中的任一像素,根据所述预设的CT值范围,对所述像素的像素值进行预处理,得到所述像素的预处理后的像素值,其中,所述像素的预处理后的像素值在所述预设的CT值范围内;将第一差值与第二差值的比值,作为所述像素的归一化的像素值,其中,所述第一差值等于所述像素的预处理后的像素值与所述预设的CT值范围的下边界值的差值,所述第二差值等于所述预设的CT值范围的上边界值与所述像素的预处理后的像素值的差值。例如,所述像素的预处理后的像素值为h,所述预设的CT值范围的下边界值为h min,所述预设的CT值范围的上边界值为h max,则所述像素的归一化的像素值可以等于
Figure PCTCN2020138131-appb-000002
根据所述训练图像的各个像素的归一化的像素值,可以得到归一化的训练图像。即,在所述归一化的训练图像中,任一像素的像素值为该像素的归一化的像素值。
In one example, performing normalization processing on pixel values of the training image according to a preset CT value range to obtain a normalized training image, including: for any pixel in the training image, According to the preset CT value range, the pixel value of the pixel is preprocessed to obtain the preprocessed pixel value of the pixel, wherein the preprocessed pixel value of the pixel is within the preset range. The ratio of the first difference to the second difference is taken as the normalized pixel value of the pixel, wherein the first difference is equal to the preprocessed pixel value of the pixel The difference from the lower boundary value of the preset CT value range, the second difference is equal to the difference between the upper boundary value of the preset CT value range and the preprocessed pixel value of the pixel . For example, the preprocessed pixel value of the pixel is h, the lower boundary value of the preset CT value range is h min , and the upper boundary value of the preset CT value range is h max , then the The normalized pixel value of the pixel can be equal to
Figure PCTCN2020138131-appb-000002
According to the normalized pixel value of each pixel of the training image, a normalized training image can be obtained. That is, in the normalized training image, the pixel value of any pixel is the normalized pixel value of the pixel.
其中,对于所述训练图像中的任一像素,所述根据所述预设的CT值范围,对所述像素的像素值进行预处理,得到所述像素的预处理后的像素值,可以包括:对于训练图像中的任一像素,若所述像素的像素值小于所述预设的CT值范围的下边界值,则可以将所述下边界值作为所述像素的预处理后的像素值;若所述像素的像素值大于所述预设的CT值范围的上边界值,则可以将所述上边界值作为所述像素的预处理后的像素值;若所述像素的像素值在所述预设的CT值范围内,则可以将所述像素的像素值作为所述像素的预处理后的像素值。例如,预设的CT值范围为[-500,1200],所述预设的CT值范围的下边界值为-500,所述预设的CT值范围的上边界值为1200。若训练图像中的某一像素的像素值为-505,则可以将-500作为该像素的预处理后的像素值;若训练图像中的某一像素的像素值为1250,则可以将1200作为该像素的预处理后的像素值;若训练图像中的某一像素的像素值为800,则可以将800作为该像素的预处理后的像素值。Wherein, for any pixel in the training image, performing preprocessing on the pixel value of the pixel according to the preset CT value range to obtain the preprocessed pixel value of the pixel may include : For any pixel in the training image, if the pixel value of the pixel is smaller than the lower boundary value of the preset CT value range, the lower boundary value can be used as the preprocessed pixel value of the pixel ; If the pixel value of the pixel is greater than the upper boundary value of the preset CT value range, then the upper boundary value can be used as the preprocessed pixel value of the pixel; if the pixel value of the pixel is in Within the preset CT value range, the pixel value of the pixel may be used as the preprocessed pixel value of the pixel. For example, the preset CT value range is [-500, 1200], the lower boundary value of the preset CT value range is -500, and the upper boundary value of the preset CT value range is 1200. If the pixel value of a pixel in the training image is -505, you can use -500 as the preprocessed pixel value of the pixel; if the pixel value of a pixel in the training image is 1250, you can use 1200 as the pixel value after preprocessing. The preprocessed pixel value of the pixel; if the pixel value of a certain pixel in the training image is 800, 800 can be used as the preprocessed pixel value of the pixel.
在该示例中,根据预设的CT值范围,对所述训练图像的像素值进行归一化处理,得到归一化的训练图像,并根据所述归一化的训练图像和所述训练图像的标注数据训练所述神经网络,由此有助于降低所述神经网络的计算量,提高所述神经网络的收敛速度。In this example, according to the preset CT value range, the pixel values of the training image are normalized to obtain a normalized training image, and according to the normalized training image and the training image The labeled data is used to train the neural network, thereby helping to reduce the computational load of the neural network and improve the convergence speed of the neural network.
在步骤S12中,根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果。In step S12, according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image, it is predicted that in the closed area included in the edge of the target object, the target object does not belong to the target object The pixel value of the pixel is adjusted to obtain the first segmentation result corresponding to the image to be processed.
在本公开实施例中,可以采用边缘检测方法,确定所述待处理图像中所述目标对象的边缘信息。例如,可以采用坎尼(Canny)算法、索贝尔(Sobel)算法等边缘检测方法,确定所述待处理图像中所述目标对象的边缘信息。其中,所述待处理图像中所述目标对象的边缘信息,可以包括所述待处理图像中属于所述目标对象的边缘的像素的位置信息。In this embodiment of the present disclosure, an edge detection method may be used to determine the edge information of the target object in the image to be processed. For example, edge detection methods such as Canny algorithm and Sobel algorithm may be used to determine the edge information of the target object in the image to be processed. The edge information of the target object in the image to be processed may include position information of pixels belonging to the edge of the target object in the image to be processed.
在一种可能的实现方式中,可以将所述第一分割结果作为所述待处理图像对应的最终分割结果。In a possible implementation manner, the first segmentation result may be used as the final segmentation result corresponding to the image to be processed.
在本公开实施例中,通过预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像,根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果,由此在目标对象为人体或者动物体的情况下,能够将目标对象的器官内部的像素也分割为属于目标对象,从而能够得到更准确、鲁棒的分割结果。例如,待处理图像为CT图像,目标对象为人体,采用本公开实施例提供的图像分割方法对CT图像进行分割,能够准确地分割出CT图像中的人体部分,准确地去除CT图像中人体外部的干扰物(例如床板、呼吸机的管线、头部的固定装置等)。In the embodiment of the present disclosure, a preliminary segmented image corresponding to the to-be-processed image is obtained by predicting the pixels belonging to the target object in the to-be-processed image, and according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image In dividing the image, the pixel values of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the target object are adjusted to obtain the first segmentation result corresponding to the image to be processed. When the target object is a human body or an animal body, the pixels inside the organs of the target object can also be segmented as belonging to the target object, so that a more accurate and robust segmentation result can be obtained. For example, if the image to be processed is a CT image, and the target object is a human body, the CT image is segmented by using the image segmentation method provided by the embodiment of the present disclosure, so that the human body part in the CT image can be accurately segmented, and the outside of the human body in the CT image can be accurately removed. interference (e.g. bed board, ventilator lines, head fixtures, etc.).
在一种可能的实现方式中,所述根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果,包括:将所述初步分割图像中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到填充后的初步分割图像;根据所述待处理图像中所述目标对象的边缘信息,对所述填充后的初步分割图像的像素值进行调整,得到所述待处理图像对应的第一分割结果。In a possible implementation manner, according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image, the predicted value in the enclosed area included in the edge of the target object is Adjusting the pixel values of the pixels that do not belong to the target object to obtain the first segmentation result corresponding to the image to be processed, comprising: adjusting the pixel value in the preliminary segmented image to the value of the closed area of the second preset value. The pixel value is adjusted to the first preset value to obtain a filled preliminary segmented image; according to the edge information of the target object in the to-be-processed image, the pixel value of the filled preliminary segmented image is adjusted, A first segmentation result corresponding to the to-be-processed image is obtained.
由于一些器官内部(例如肺内、消化道内部)包含空气,密度较低,而目标对象(例如人体)的外 部也是空气,因此在初步分割图像中,可能将这些器官的内部分割为属于背景部分。该实现方式通过将所述初步分割图像中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到填充后的初步分割图像,由此能够使待处理图像对应的第一分割结果覆盖目标对象的器官内部,例如覆盖肺内等肺实质部分、消化道(例如胃肠道)的内部等。即,通过采用上述实现方式,能够将图像分割后目标对象内部(例如人体内)漏掉的空洞补上。通过根据所述待处理图像中所述目标对象的边缘信息,对所述填充后的初步分割图像的像素值进行调整,得到所述待处理图像对应的第一分割结果,由此能够减小将待处理图像中的背景部分(即不属于目标对象的部分)分割为属于目标对象的概率。Since the interior of some organs (such as the lungs, the interior of the digestive tract) contains air with low density, and the exterior of the target object (such as the human body) is also air, in the preliminary segmentation image, the interior of these organs may be segmented as belonging to the background part . In this implementation manner, a filled preliminary segmented image is obtained by adjusting the pixel value of the closed area whose pixel value is the second preset value in the preliminary segmented image to the first preset value, thereby enabling the The first segmentation result corresponding to the processed image covers the inside of the organ of the target object, for example, covers the lung parenchyma such as the lung, the inside of the digestive tract (eg, the gastrointestinal tract), and the like. That is, by adopting the above-mentioned implementation manner, the missing holes in the target object (for example, in the human body) after image segmentation can be filled. By adjusting the pixel values of the filled preliminary segmented image according to the edge information of the target object in the to-be-processed image, the first segmentation result corresponding to the to-be-processed image can be obtained, thereby reducing the The background part in the image to be processed (ie the part that does not belong to the target object) is divided into the probability of belonging to the target object.
作为该实现方式的一个示例,所述将所述初步分割图像中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到填充后的初步分割图像,包括:在所述初步分割图像的周围拼接预设宽度的边,得到拼接后的初步分割图像,其中,拼接的所述预设宽度的边的像素的像素值为所述第二预设值;选取所述拼接后的初步分割图像的图像边缘的像素作为种子点,对所述拼接后的初步分割图像进行泛洪填充操作,得到填充后的初步分割图像。As an example of this implementation, adjusting the pixel value of the enclosed area with the pixel value of the second preset value in the preliminary segmented image to the first preset value to obtain the filled preliminary segmented image , comprising: splicing edges of a preset width around the preliminary segmented image to obtain a preliminarily segmented image after splicing, wherein the pixel value of the pixels of the edge of the spliced preset width is the second preset value ; Select the pixel of the image edge of the preliminarily segmented image after the splicing as a seed point, and perform a flood filling operation on the preliminarily segmented image after the splicing to obtain the preliminary segmented image after the filling.
在该示例中,预设宽度可以大于或等于1像素。例如,预设宽度可以为1像素。图4示出在初步分割图像的周围拼接预设宽度的边,得到拼接后的初步分割图像的示意图。在图4所示的例子中,预设宽度为1像素。如图4所示,可以在初步分割图像的四周均拼接预设宽度的边。在其他例子中,还可以在初步分割图像的一边、两边或三边拼接预设宽度的边。In this example, the preset width may be greater than or equal to 1 pixel. For example, the preset width may be 1 pixel. FIG. 4 shows a schematic diagram of splicing edges of a preset width around a preliminary segmented image to obtain a preliminarily segmented image after splicing. In the example shown in FIG. 4, the preset width is 1 pixel. As shown in FIG. 4 , edges with preset widths may be spliced around the preliminary segmented image. In other examples, a side with a preset width can also be spliced on one side, two sides or three sides of the preliminary segmented image.
在该示例中,所述拼接后的初步分割图像的图像边缘的像素,可以指所述拼接后的初步分割图像在位置上的边缘的像素,例如所述拼接后的初步分割图像的最上方的像素、最下方的像素、最左方的像素、最右方的像素等。例如,可以将所述拼接后的初步分割图像的左上角的像素作为种子点。In this example, the pixels of the image edge of the preliminarily segmented image after splicing may refer to the pixels on the edge of the preliminarily segmented image after splicing, for example, the uppermost pixel of the preliminarily segmented image after splicing pixel, bottommost pixel, leftmost pixel, rightmost pixel, etc. For example, the pixel in the upper left corner of the stitched preliminary segmented image may be used as the seed point.
在该示例中,通过在所述初步分割图像的周围拼接预设宽度的边,再选取所述拼接后的初步分割图像的图像边缘的像素作为种子点,由此能够保证泛洪填充操作的种子点属于背景部分(即不属于目标对象的部分),从而能够使待处理图像对应的第一分割结果覆盖目标对象的器官内部,进而得到更准确的分割结果。In this example, by splicing edges of a preset width around the preliminary segmented image, and then selecting the pixels of the image edge of the preliminarily segmented image after splicing as seed points, the seeds of the flood filling operation can be guaranteed. The point belongs to the background part (ie the part that does not belong to the target object), so that the first segmentation result corresponding to the image to be processed can cover the inside of the organ of the target object, thereby obtaining a more accurate segmentation result.
作为该实现方式的一个示例,所述根据所述待处理图像中所述目标对象的边缘信息,对所述填充后的初步分割图像的像素值进行调整,得到所述待处理图像对应的第一分割结果,包括:根据所述待处理图像中所述目标对象的边缘信息,确定所述填充后的初步分割图像中所述目标对象的边缘所包含的最大连通域;将所述填充后的初步分割图像中所述最大连通域之外的像素的像素值调整为所述第二预设值,得到所述待处理图像对应的第一分割结果。根据该示例,能够剔除不与目标对象相连的假阳区域,由此能够大大降低将背景部分错误地划分为属于目标对象的概率,从而能够提高图像分割的准确性。例如,目标对象为人体,则根据该示例能够剔除不与人体相连的假阳区域,由此能够大大降低背景部分(例如床板等)错误地划分为属于人体的概率。As an example of this implementation, the pixel value of the filled preliminary segmented image is adjusted according to the edge information of the target object in the to-be-processed image to obtain the first corresponding to the to-be-processed image. The segmentation result includes: according to the edge information of the target object in the to-be-processed image, determining the maximum connected domain included in the edge of the target object in the preliminarily segmented image after filling; The pixel values of the pixels outside the maximum connected region in the segmented image are adjusted to the second preset value to obtain the first segmentation result corresponding to the to-be-processed image. According to this example, false positive regions that are not connected to the target object can be eliminated, thereby greatly reducing the probability of erroneously classifying the background part as belonging to the target object, thereby improving the accuracy of image segmentation. For example, if the target object is a human body, according to this example, false positive regions that are not connected to the human body can be eliminated, thereby greatly reducing the probability that the background part (eg, bed board, etc.) is erroneously classified as belonging to the human body.
在一种可能的实现方式中,在所述得到所述待处理图像对应的第一分割结果之后,所述方法还包括:获取与所述待处理图像相邻的图像以及所述相邻的图像对应的第二分割结果;根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果。In a possible implementation manner, after obtaining the first segmentation result corresponding to the image to be processed, the method further includes: acquiring images adjacent to the image to be processed and the adjacent images The corresponding second segmentation result; according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, adjust the first segmentation result to obtain the to-be-processed The third segmentation result corresponding to the image.
在该实现方式中,与所述待处理图像相邻的图像可以是与所述待处理图像属于同一图像序列、且与所述待处理图像相邻的图像。例如,所述待处理图像是CT图像,所述相邻的图像可以是与所述待处理图像属于同一CT图像序列、且与所述待处理图像相邻的图像。所述第二分割结果,可以指所述相邻的图像对应的最终分割结果。In this implementation manner, the image adjacent to the image to be processed may be an image belonging to the same image sequence as the image to be processed and adjacent to the image to be processed. For example, the image to be processed is a CT image, and the adjacent images may be images belonging to the same CT image sequence as the image to be processed and adjacent to the image to be processed. The second segmentation result may refer to the final segmentation result corresponding to the adjacent images.
根据该实现方式,能够保证待处理图像与第二分割结果的连续性,从而有助于得到更平滑、准确的三维分割结果。例如,所述目标对象为人体,则可以保证待处理图像与相邻的图像中人体的连续性,从而有助于得到更平滑、准确的三维人体分割结果。例如,可以采用该实现方式得到CT图像序列中的各个CT图像对应的分割结果,由此得到更平滑、准确的三维人体分割结果。According to this implementation manner, the continuity of the image to be processed and the second segmentation result can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional segmentation result. For example, if the target object is a human body, the continuity of the image to be processed and the human body in the adjacent images can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional human body segmentation result. For example, the segmentation result corresponding to each CT image in the CT image sequence can be obtained by using this implementation manner, thereby obtaining a smoother and more accurate three-dimensional human body segmentation result.
作为该实现方式的一个示例,所述根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果,包括:根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果。As an example of this implementation, the first segmentation result is adjusted according to the pixel value of the pixel at the same position in the to-be-processed image and the adjacent image, and the second segmentation result, to obtain the The third segmentation result corresponding to the image to be processed includes: according to the adjacent images, the second segmentation result belongs to the target object and is in the same position as the image to be processed. For pixels whose difference value is less than or equal to a third preset value, the first segmentation result is adjusted to obtain a third segmentation result corresponding to the image to be processed.
在该示例中,所述相邻的图像与所述待处理图像在相同位置的像素值的差值,可以指相邻的图像与待处理图像在相同位置的归一化的像素值的差值。例如,第三预设值可以为0.1。当然,也可以对相邻的图像与所述待处理图像在相同位置的原始的像素值进行比较。In this example, the difference between the pixel values of the adjacent image and the image to be processed at the same position may refer to the difference between the normalized pixel values of the adjacent image and the image to be processed at the same position . For example, the third preset value may be 0.1. Of course, it is also possible to compare the original pixel values of adjacent images and the image to be processed at the same position.
在该示例中,通过根据所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的 像素值的差值小于或等于第三预设值的像素,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果,由此能够根据所述相邻的图像中与所述待处理图像较为相关的像素对应的分割结果,对所述待处理图像对应的第一分割结果进行调整,从而有助于提高所述待处理图像对应的最终分割结果的准确性。其中,所述相邻的图像中的任一像素对应的分割结果,可以指在所述第二分割结果中,该像素是否属于目标对象。In this example, by adjusting the pixel according to the second segmentation result that belongs to the target object and has a pixel value at the same position as the image to be processed whose pixel value difference is less than or equal to a third preset value The first segmentation result is obtained, and the third segmentation result corresponding to the image to be processed is obtained, so that the image to be processed can be classified according to the segmentation result corresponding to the pixel relatively related to the image to be processed in the adjacent images. The corresponding first segmentation result is adjusted, thereby helping to improve the accuracy of the final segmentation result corresponding to the image to be processed. The segmentation result corresponding to any pixel in the adjacent images may refer to whether the pixel belongs to the target object in the second segmentation result.
在一个例子中,所述根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果,包括:根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集;根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集;将所述第一分割结果中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的第三分割结果。In an example, according to the adjacent images, the difference between the pixel values of the target object in the second segmentation result and at the same position as the image to be processed is less than or equal to the first three preset values of pixels, adjusting the first segmentation result to obtain a third segmentation result corresponding to the image to be processed, including: according to the pixel value at the same position in the image to be processed and the adjacent image Pixels whose difference value is less than or equal to the third preset value are obtained to obtain a first pixel set; according to the pixels belonging to the target object in the second segmentation result of the first pixel set, a second pixel set is obtained; The pixels of the second pixel set in the first segmentation result are adjusted to belong to the target object, and a third segmentation result corresponding to the image to be processed is obtained.
在这个例子中,第一像素集中的任一像素在所述待处理图像和所述相邻的图像中的像素值的差值小于或等于第三预设值。第二像素集中的任一像素在所述待处理图像和所述相邻的图像中的像素值的差值小于或等于第三预设值,且在所述第二分割结果中属于所述目标对象。例如,第一分割结果为A,第一像素集为B,所述第二分割结果为C,则第三分割结果可以为S=A∪(B∩C)。In this example, the difference between the pixel values of any pixel in the first pixel set in the to-be-processed image and the adjacent image is less than or equal to a third preset value. The difference between the pixel values of any pixel in the second pixel set in the to-be-processed image and the adjacent image is less than or equal to a third preset value, and belongs to the target in the second segmentation result object. For example, if the first segmentation result is A, the first pixel set is B, and the second segmentation result is C, the third segmentation result may be S=A∪(B∩C).
在上述例子中,通过根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集,根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集,并将所述第一分割结果中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的第三分割结果,由此能够根据所述第二分割结果中属于所述目标对象、且与所述待处理图像较为相关的像素,对所述待处理图像对应的第一分割结果进行调整,从而有助于提高所述待处理图像对应的最终分割结果的准确性。In the above example, the first pixel set is obtained according to the pixels whose difference between the pixel values in the image to be processed and the adjacent images at the same position is less than or equal to the third preset value, and according to the first pixel set. A pixel is concentrated in the pixels belonging to the target object in the second segmentation result to obtain a second pixel set, and the pixels of the second pixel set in the first segmentation result are adjusted to belong to the target object, The third segmentation result corresponding to the image to be processed is obtained, whereby the pixels corresponding to the image to be processed can be classified according to the pixels in the second segmentation result that belong to the target object and are relatively related to the image to be processed. The first segmentation result is adjusted, thereby helping to improve the accuracy of the final segmentation result corresponding to the image to be processed.
在一种可能的实现方式中,可以将所述第三分割结果作为所述待处理图像对应的最终分割结果。In a possible implementation manner, the third segmentation result may be used as the final segmentation result corresponding to the image to be processed.
图5示出本公开实施例提供的图像分割方法的另一流程图。所述图像分割方法的执行主体可以是图像分割装置。例如,所述图像分割方法可以由终端设备或服务器或其它处理设备执行。其中,终端设备可以是用户设备、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理、手持设备、计算设备、车载设备或者可穿戴设备等。在一些可能的实现方式中,所述图像分割方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。如图5所示,所述图像分割方法包括步骤S41至步骤S43。FIG. 5 shows another flowchart of the image segmentation method provided by the embodiment of the present disclosure. The executing subject of the image segmentation method may be an image segmentation device. For example, the image segmentation method may be performed by a terminal device or a server or other processing device. The terminal device may be a user equipment, a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant, a handheld device, a computing device, a vehicle-mounted device, a wearable device, or the like. In some possible implementations, the image segmentation method may be implemented by a processor invoking computer-readable instructions stored in a memory. As shown in FIG. 5 , the image segmentation method includes steps S41 to S43.
在步骤S41中,预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像。In step S41, pixels belonging to the target object in the image to be processed are predicted, and a preliminary segmented image corresponding to the image to be processed is obtained.
在步骤S42中,获取与所述待处理图像相邻的图像以及所述相邻的图像对应的第二分割结果。In step S42, an image adjacent to the to-be-processed image and a second segmentation result corresponding to the adjacent image are acquired.
在本公开实施例中,与所述待处理图像相邻的图像可以是与所述待处理图像属于同一图像序列、且与所述待处理图像相邻的图像。例如,所述待处理图像是CT图像,所述相邻的图像可以是与所述待处理图像属于同一CT图像序列、且与所述待处理图像相邻的图像。所述第二分割结果,可以指所述相邻的图像对应的最终分割结果。In this embodiment of the present disclosure, the image adjacent to the to-be-processed image may be an image that belongs to the same image sequence as the to-be-processed image and is adjacent to the to-be-processed image. For example, the image to be processed is a CT image, and the adjacent images may be images belonging to the same CT image sequence as the image to be processed and adjacent to the image to be processed. The second segmentation result may refer to the final segmentation result corresponding to the adjacent images.
在步骤S43中,根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述初步分割图像,得到待处理图像对应的第四分割结果。In step S43, according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, the preliminary segmented image is adjusted to obtain a fourth corresponding image to be processed. Split result.
在本公开实施例中,能够保证待处理图像与第二分割结果的连续性,从而有助于得到更平滑、准确的三维分割结果。例如,所述目标对象为人体,则可以保证待处理图像与相邻的图像中人体的连续性,从而有助于得到更平滑、准确的三维人体分割结果。例如,可以采用本公开实施例得到CT图像序列中的各个CT图像对应的分割结果,由此得到更平滑、准确的三维人体分割结果。In the embodiment of the present disclosure, the continuity of the image to be processed and the second segmentation result can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional segmentation result. For example, if the target object is a human body, the continuity of the image to be processed and the human body in the adjacent images can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional human body segmentation result. For example, a segmentation result corresponding to each CT image in the CT image sequence can be obtained by using the embodiments of the present disclosure, thereby obtaining a smoother and more accurate three-dimensional human body segmentation result.
在一种可能的实现方式中,所述根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果,包括:根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果。In a possible implementation manner, according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, the preliminary segmented image is adjusted to obtain the The fourth segmentation result corresponding to the image to be processed includes: according to the adjacent images, the second segmentation result belongs to the target object and is in the same position as the image to be processed. For pixels whose difference value is less than or equal to the third preset value, the preliminary segmented image is adjusted to obtain a fourth segmentation result corresponding to the image to be processed.
在该实现方式中,所述相邻的图像与所述待处理图像在相同位置的像素值的差值,可以指所述相邻的图像与所述待处理图像在相同位置的归一化的像素值的差值。例如,第三预设值可以为0.1。当然,也可以对所述相邻的图像与所述待处理图像在相同位置的原始的像素值进行比较。In this implementation manner, the difference between the pixel values of the adjacent image and the image to be processed at the same position may refer to the normalized difference between the adjacent image and the image to be processed at the same position Difference of pixel values. For example, the third preset value may be 0.1. Of course, the original pixel values of the adjacent images and the image to be processed at the same position can also be compared.
在该实现方式中,通过根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果,由此能够根据所述相邻的图像中与所述待处理图像较为相关的像 素对应的分割结果,对所述待处理图像对应的初步分割图像进行调整,从而有助于提高所述待处理图像对应的最终分割结果的准确性。其中,所述相邻的图像中的任一像素对应的分割结果,可以指在所述第二分割结果中,该像素是否属于目标对象。In this implementation manner, according to the adjacent images, in the second segmentation result, the difference between the pixel values belonging to the target object and at the same position as the image to be processed is less than or equal to the first Pixels with three preset values, adjust the preliminary segmented image, and obtain a fourth segmentation result corresponding to the image to be processed. For the segmentation result, the preliminary segmented image corresponding to the to-be-processed image is adjusted, thereby helping to improve the accuracy of the final segmentation result corresponding to the to-be-processed image. The segmentation result corresponding to any pixel in the adjacent images may refer to whether the pixel belongs to the target object in the second segmentation result.
作为该实现方式的一个示例,所述根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果,包括:根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集;根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集;将所述初步分割图像中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的第四分割结果。As an example of this implementation, in the adjacent images, the difference between the pixel values in the second segmentation result belonging to the target object and at the same position as the image to be processed is less than or a pixel equal to a third preset value, adjusting the preliminary segmented image to obtain a fourth segmentation result corresponding to the to-be-processed image, including: according to the to-be-processed image and the adjacent image at the same position; A pixel whose pixel value difference is less than or equal to a third preset value is obtained to obtain a first pixel set; and a second pixel set is obtained according to the pixels of the first pixel set that belong to the target object in the second segmentation result ; Adjust the pixels of the second pixel set in the preliminary segmented image to belong to the target object, and obtain a fourth segmentation result corresponding to the to-be-processed image.
在该示例中,第一像素集中的任一像素在所述待处理图像和所述相邻的图像中的像素值的差值小于或等于第三预设值。第二像素集中的任一像素在所述待处理图像和所述相邻的图像中的像素值的差值小于或等于第三预设值,且在所述第二分割结果中属于所述目标对象。例如,第一分割结果为A,第一像素集为B,所述第二分割结果为C,则第三分割结果可以为S=A∪(B∩C)。In this example, the difference between the pixel values of any pixel in the first pixel set in the to-be-processed image and the adjacent image is less than or equal to a third preset value. The difference between the pixel values of any pixel in the second pixel set in the to-be-processed image and the adjacent image is less than or equal to a third preset value, and belongs to the target in the second segmentation result object. For example, if the first segmentation result is A, the first pixel set is B, and the second segmentation result is C, the third segmentation result may be S=A∪(B∩C).
在该示例中,通过根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集,根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集,并将所述第一分割结果中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的第三分割结果,由此能够根据所述第二分割结果中属于所述目标对象、且与所述待处理图像较为相关的像素,对所述待处理图像对应的第一分割结果进行调整,从而有助于提高所述待处理图像对应的最终分割结果的准确性。In this example, a first pixel set is obtained according to a pixel whose difference between the pixel value of the image to be processed and the pixel value of the adjacent image at the same position is less than or equal to a third preset value. A pixel is concentrated in the pixels belonging to the target object in the second segmentation result to obtain a second pixel set, and the pixels of the second pixel set in the first segmentation result are adjusted to belong to the target object, The third segmentation result corresponding to the image to be processed is obtained, whereby the pixels corresponding to the image to be processed can be classified according to the pixels in the second segmentation result that belong to the target object and are relatively related to the image to be processed. The first segmentation result is adjusted, thereby helping to improve the accuracy of the final segmentation result corresponding to the image to be processed.
在一种可能的实现方式中,可以将所述第四分割结果作为所述待处理图像对应的最终分割结果。In a possible implementation manner, the fourth segmentation result may be used as the final segmentation result corresponding to the image to be processed.
在一种可能的实现方式中,在所述得到所述待处理图像对应的第四分割结果之后,所述方法还包括:根据所述待处理图像中所述目标对象的边缘信息,在所述第四分割结果中、对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的的像素值进行调整,得到所述待处理图像对应的第五分割结果。In a possible implementation manner, after obtaining the fourth segmentation result corresponding to the to-be-processed image, the method further includes: according to the edge information of the target object in the to-be-processed image, in the In the fourth segmentation result, the pixel values of the predicted pixels not belonging to the target object in the enclosed area included in the edge of the target object are adjusted to obtain the fifth segmentation result corresponding to the image to be processed.
作为该实现方式的一个示例,所述根据所述待处理图像中所述目标对象的边缘信息,在所述第四分割结果中、对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的的像素值进行调整,得到所述待处理图像对应的第五分割结果,包括:将所述第四分割结果中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到所述第四分割结果对应的填充后的初步分割图像;根据所述待处理图像中所述目标对象的边缘信息,对所述填充后的初步分割图像的像素值进行调整,得到所述待处理图像对应的第五分割结果。As an example of this implementation, according to the edge information of the target object in the to-be-processed image, in the fourth segmentation result, in the closed area included in the edge of the target object, the predicted Adjusting the pixel values of pixels that do not belong to the target object to obtain a fifth segmentation result corresponding to the to-be-processed image, including: closing the pixel value in the fourth segmentation result to the second preset value The pixel value of the area is adjusted to the first preset value, and a filled preliminary segmented image corresponding to the fourth segmentation result is obtained; according to the edge information of the target object in the to-be-processed image, the filled The pixel value of the preliminary segmented image is adjusted to obtain the fifth segmentation result corresponding to the to-be-processed image.
在一个例子中,所述将所述第四分割结果中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到所述第四分割结果对应的填充后的初步分割图像,包括:在所述第四分割结果的周围拼接预设宽度的边,得到拼接后的第四分割结果,其中,拼接的所述预设宽度的边的像素的像素值为所述第二预设值;选取所述拼接后的第四分割结果的图像边缘的像素作为种子点,对所述拼接后的第四分割结果进行泛洪填充操作,得到所述第四分割结果对应的填充后的初步分割图像。In an example, adjusting the pixel value of the enclosed area with the pixel value of the second preset value in the fourth segmentation result to the first preset value, to obtain a corresponding pixel value of the fourth segmentation result The filled preliminary segmented image includes: splicing edges of a preset width around the fourth segmentation result to obtain a fourth segmentation result after splicing, wherein the pixel values of the pixels of the spliced edges of the preset width are is the second preset value; select the pixels of the image edge of the fourth segmentation result after splicing as a seed point, and perform a flood filling operation on the fourth segmentation result after splicing to obtain the fourth segmentation The result corresponds to the padded preliminary segmented image.
在一个例子中,所述根据所述待处理图像中所述目标对象的边缘信息,在所述第四分割结果中、对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的的像素值进行调整,得到所述待处理图像对应的第五分割结果,包括:根据所述待处理图像中所述目标对象的边缘信息,确定所述填充后的初步分割图像中所述目标对象的边缘所包含的最大连通域;将所述填充后的初步分割图像中所述最大连通域之外的像素的像素值调整为所述第二预设值,得到所述待处理图像对应的第五分割结果。In an example, according to the edge information of the target object in the to-be-processed image, in the fourth segmentation result, in the closed area included in the edge of the target object, the predicted object does not belong to the target object. adjusting the pixel values of the pixels of the target object to obtain a fifth segmentation result corresponding to the image to be processed, including: determining the filled preliminary segmentation according to the edge information of the target object in the image to be processed the maximum connected domain included in the edge of the target object in the image; adjust the pixel values of the pixels outside the maximum connected domain in the filled preliminary segmented image to the second preset value to obtain the The fifth segmentation result corresponding to the image to be processed.
其中,“根据所述待处理图像中所述目标对象的边缘信息,在所述第四分割结果中、对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的的像素值进行调整,得到所述待处理图像对应的第五分割结果”的具体实现方式,与上文中“根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果”的具体实现方式相似,在此不再赘述。Among them, "According to the edge information of the target object in the image to be processed, in the fourth segmentation result, in the closed area included in the edge of the target object, the predicted object that does not belong to the target object is The specific implementation method of adjusting the pixel value of the pixel to obtain the fifth segmentation result corresponding to the image to be processed” is the same as the above “According to the edge information of the target object in the image to be processed, in the preliminary segmentation In the image, adjust the pixel values of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the target object, and obtain the first segmentation result corresponding to the image to be processed". similar, and will not be repeated here.
在一种可能的实现方式中,可以将所述第五分割结果作为所述待处理图像对应的最终分割结果。In a possible implementation manner, the fifth segmentation result may be used as the final segmentation result corresponding to the image to be processed.
可以理解,本公开提及的各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和内在逻辑确定。It can be understood that each method embodiment mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle and logic. Due to space limitations, the present disclosure will not repeat them. Those skilled in the art can understand that, in the above method in the specific implementation manner, the specific execution order of each step should be determined by its function and internal logic.
下面通过一个具体的应用场景说明本公开实施例。The embodiments of the present disclosure are described below through a specific application scenario.
首先,获取训练图像和训练图像对应的掩膜。该训练图像为人体的CT图像,这里,可以根据人体所有组织器官的CT值,设置预设的CT值范围为[-500,1200],如此,覆盖人体所有的组织器官。First, get the training image and the mask corresponding to the training image. The training image is a CT image of the human body. Here, the preset CT value range can be set to [-500, 1200] according to the CT values of all the tissues and organs of the human body. In this way, all the tissues and organs of the human body are covered.
基于预设的CT值范围,对训练图像中的任一像素进行预处理,得到预处理后的像素值。具体地,对于训练图像中的任一像素,若所述像素的像素值小于所述预设的CT值范围的下边界值,则可以将所述下边界值作为所述像素的预处理后的像素值;若所述像素的像素值大于所述预设的CT值范围的上边界值,则可以将所述上边界值作为所述像素的预处理后的像素值;若所述像素的像素值在所述预设的CT值范围内,则可以将所述像素的像素值作为所述像素的预处理后的像素值。例如,若训练图像中的某一像素的像素值为-505,则可以将-500作为该像素的预处理后的像素值;若训练图像中的某一像素的像素值为1250,则可以将1200作为该像素的预处理后的像素值;若训练图像中的某一像素的像素值为800,则可以将800作为该像素的预处理后的像素值。Based on the preset CT value range, any pixel in the training image is preprocessed to obtain the preprocessed pixel value. Specifically, for any pixel in the training image, if the pixel value of the pixel is smaller than the lower boundary value of the preset CT value range, the lower boundary value may be used as the preprocessed value of the pixel. pixel value; if the pixel value of the pixel is greater than the upper boundary value of the preset CT value range, the upper boundary value can be used as the preprocessed pixel value of the pixel; if the pixel value of the pixel is If the value is within the preset CT value range, the pixel value of the pixel may be used as the preprocessed pixel value of the pixel. For example, if the pixel value of a pixel in the training image is -505, you can use -500 as the preprocessed pixel value of the pixel; if the pixel value of a pixel in the training image is 1250, you can use -500 as the pixel value after preprocessing. 1200 is used as the preprocessed pixel value of the pixel; if the pixel value of a certain pixel in the training image is 800, 800 can be used as the preprocessed pixel value of the pixel.
然后,根据预设的CT值范围,对所述训练图像的任意像素的像素值进行归一化处理,得到归一化的训练图像。这里,可以使用公式(1)对练图像的任意像素的像素值进行归一化处理:Then, according to the preset CT value range, the pixel value of any pixel of the training image is normalized to obtain a normalized training image. Here, formula (1) can be used to normalize the pixel value of any pixel of the training image:
Figure PCTCN2020138131-appb-000003
Figure PCTCN2020138131-appb-000003
其中,h为所述像素经过预处理后像素值,h min为所述预设的CT值范围的下边界值,h max为所述预设的CT值范围的上边界值。如此,对训练图像中的每个像素进行上述处理,可以得到归一化的训练图像。 Wherein, h is the preprocessed pixel value of the pixel, h min is the lower boundary value of the preset CT value range, and h max is the upper boundary value of the preset CT value range. In this way, by performing the above processing on each pixel in the training image, a normalized training image can be obtained.
这里,可以对归一化的训练图像进行扩增。例如,可以将归一化的训练图像随机缩放0.6至1.4倍,再以512×512的尺寸从缩放后的图像中心裁剪,以获得不同缩放尺度下的相同尺寸的训练图像。相应地,对训练图像对应的掩膜也进行同样的操作。Here, the normalized training images can be augmented. For example, the normalized training image can be randomly scaled by a factor of 0.6 to 1.4, and then cropped from the center of the scaled image at a size of 512 × 512 to obtain training images of the same size at different scales. Correspondingly, do the same for the mask corresponding to the training image.
进一步,可以将经过归一化处理以扩增处理后的训练图像分为训练集和验证集。例如,可以按照4:1的比例将处理后的训练图像分为训练集和验证集。Further, the normalized and augmented training images can be divided into a training set and a validation set. For example, the processed training images can be divided into training and validation sets in a 4:1 ratio.
这样,可以采用训练集重复训练U型卷积神经网络,直至所述U型卷积神经网络在验证集上的损失降到0.03以下,得到训练好的U型卷积神经网络。In this way, the U-shaped convolutional neural network can be repeatedly trained by using the training set until the loss of the U-shaped convolutional neural network on the verification set drops below 0.03, and a trained U-shaped convolutional neural network is obtained.
实际应用中,获取待处理CT图像,并将所述待处理CT图像输入至训练后好的U型卷积神经网络中,通过所述U型卷积神经网络预测所述待处理CT图像中属于目标对象的像素的信息;根据所述待处理CT图像中属于所述目标对象的像素的信息,得到所述待处理CT图像对应的初步分割图像。In practical applications, the CT image to be processed is obtained, and the CT image to be processed is input into the U-shaped convolutional neural network after training, and the U-shaped convolutional neural network is used to predict whether the CT image to be processed belongs to Information of the pixels of the target object; according to the information of the pixels belonging to the target object in the CT image to be processed, a preliminary segmented image corresponding to the CT image to be processed is obtained.
在得到所述初步分割图像后,可以在所述初步分割图像的四周拼接宽度为1像素的边,得到拼接后的初步分割图像;选取所述拼接后的初步分割图像的左上角的像素作为种子点,对所述拼接后的初步分割图像进行泛洪填充操作,得到填充后的初步分割图像。这里,可以根据所述待处理CT图像中所述目标对象的边缘信息,确定所述填充后的初步分割图像中所述目标对象的边缘所包含的最大连通域;将所述填充后的初步分割图像中所述最大连通域之外的像素的像素值调整为所述第二预设值,得到所述待处理CT图像对应的第一分割结果。在得到所述第一分割结果之后,可以获取与所述待处理CT图像相邻的图像以及所述相邻的图像对应的第二分割结果。After the preliminary segmented image is obtained, edges with a width of 1 pixel can be spliced around the preliminary segmented image to obtain a preliminarily segmented image after splicing; the pixel in the upper left corner of the preliminarily segmented image after splicing is selected as a seed point, and perform a flood filling operation on the preliminarily segmented image after splicing to obtain a preliminarily segmented image after filling. Here, according to the edge information of the target object in the CT image to be processed, the maximum connected domain included in the edge of the target object in the preliminarily segmented image after filling can be determined; The pixel values of the pixels outside the maximum connected region in the image are adjusted to the second preset value to obtain the first segmentation result corresponding to the CT image to be processed. After the first segmentation result is obtained, an image adjacent to the CT image to be processed and a second segmentation result corresponding to the adjacent image may be obtained.
进一步,可以根据所述待处理CT图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集;根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集;将所述第一分割结果中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理CT图像对应的第三分割结果。Further, the first pixel set can be obtained according to the pixel whose difference between the CT image to be processed and the pixel value at the same position in the adjacent image is less than or equal to the third preset value; according to the first pixel Concentrating on the pixels belonging to the target object in the second segmentation result to obtain a second pixel set; adjusting the pixels of the second pixel set in the first segmentation result to belong to the target object to obtain the The third segmentation result corresponding to the CT image to be processed.
此外,本公开还提供了图像分割装置、电子设备、计算机可读存储介质、程序,上述均可用来实现本公开提供的任一种图像分割方法,相应技术方案和技术效果可参见方法部分的相应记载,不再赘述。In addition, the present disclosure also provides image segmentation devices, electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any image segmentation method provided by the present disclosure. For the corresponding technical solutions and technical effects, please refer to the corresponding section of the method. record, without further elaboration.
图6示出本公开实施例提供的图像分割装置的框图。如图6所示,所述图像分割装置包括:第一分割部分51,配置为预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像;第一调整部分52,配置为根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到待处理图像对应的第一分割结果。FIG. 6 shows a block diagram of an image segmentation apparatus provided by an embodiment of the present disclosure. As shown in FIG. 6 , the image segmentation device includes: a first segmentation part 51, configured to predict pixels belonging to the target object in the image to be processed, and obtain a preliminary segmented image corresponding to the image to be processed; a first adjustment part 52, It is configured to, according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image, perform an analysis of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the target object. The pixel values are adjusted to obtain the first segmentation result corresponding to the image to be processed.
在一种可能的实现方式中,在所述初步分割图像中,预测的属于所述目标对象的像素的像素值为第一预设值,预测的不属于所述目标对象的像素的像素值为第二预设值;所述第一调整部分52,配置为将所述初步分割图像中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到填充后的初步分割图像;根据所述待处理图像中所述目标对象的边缘信息,对所述填充后的初步分割图像的像素值进行调整,得到所述待处理图像对应的第一分割结果。In a possible implementation manner, in the preliminary segmented image, the predicted pixel value of the pixel belonging to the target object is a first preset value, and the predicted pixel value of the pixel not belonging to the target object is the first preset value. the second preset value; the first adjustment part 52 is configured to adjust the pixel value of the closed area whose pixel value in the preliminary segmented image is the second preset value to the first preset value, to obtain The filled preliminary segmented image; according to the edge information of the target object in the to-be-processed image, the pixel values of the filled preliminary segmented image are adjusted to obtain a first segmentation result corresponding to the to-be-processed image.
在一种可能的实现方式中,所述第一调整部分52,配置为在所述初步分割图像的周围拼接预设宽度的边,得到拼接后的初步分割图像,其中,拼接的所述预设宽度的边的像素的像素值为所述第二预设 值;选取所述拼接后的初步分割图像的图像边缘的像素作为种子点,对所述拼接后的初步分割图像进行泛洪填充操作,得到填充后的初步分割图像。In a possible implementation manner, the first adjustment part 52 is configured to splicing edges of a preset width around the preliminary segmented image to obtain a preliminarily segmented image after splicing, wherein the spliced preset The pixel value of the pixel of the side of the width is the second preset value; the pixel of the image edge of the spliced preliminary segmented image is selected as the seed point, and the flooded filling operation is performed on the spliced preliminary segmented image, Obtain the preliminarily segmented image after filling.
在一种可能的实现方式中,所述第一调整部分52,配置为根据所述待处理图像中所述目标对象的边缘信息,确定所述填充后的初步分割图像中所述目标对象的边缘所包含的最大连通域;将所述填充后的初步分割图像中所述最大连通域之外的像素的像素值调整为所述第二预设值,得到所述待处理图像对应的第一分割结果。In a possible implementation manner, the first adjustment part 52 is configured to determine the edge of the target object in the filled preliminary segmented image according to the edge information of the target object in the image to be processed The maximum connected domain included; the pixel values of the pixels outside the maximum connected domain in the filled preliminary segmented image are adjusted to the second preset value to obtain the first segment corresponding to the image to be processed. result.
在一种可能的实现方式中,所述装置还包括:第二获取部分,配置为获取与所述待处理图像相邻的图像以及所述相邻的图像对应的第二分割结果;第三调整部分,配置为根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果。In a possible implementation manner, the apparatus further includes: a second acquisition part, configured to acquire an image adjacent to the image to be processed and a second segmentation result corresponding to the adjacent image; a third adjustment part, configured to adjust the first segmentation result according to the pixel value of the pixel at the same position in the to-be-processed image and the adjacent image, and the second segmentation result, to obtain the corresponding pixel value of the to-be-processed image The third segmentation result.
在一种可能的实现方式中,所述第三调整部分,配置为根据所述相邻的图像中,在第二分割结果中属于所述目标对象、且与待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果。In a possible implementation manner, the third adjustment part is configured to be based on pixel values in the adjacent images that belong to the target object and are at the same position as the image to be processed in the second segmentation result For pixels whose difference value is less than or equal to a third preset value, adjust the first segmentation result to obtain a third segmentation result corresponding to the image to be processed.
在一种可能的实现方式中,所述第三调整部分,配置为根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集;根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集;将所述第一分割结果中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的第三分割结果。In a possible implementation manner, the third adjustment part is configured to be smaller than or equal to a third preset value according to the difference between the pixel values in the image to be processed and the pixel values in the adjacent images at the same position. pixels to obtain a first pixel set; according to the first pixel set in the pixels belonging to the target object in the second segmentation result, a second pixel set is obtained; the second pixel set in the first segmentation result The pixels of the set are adjusted to belong to the target object, and a third segmentation result corresponding to the image to be processed is obtained.
在一种可能的实现方式中,所述装置还包括:训练部分,配置为根据训练图像和所述训练图像的标注数据训练神经网络,其中,所述训练图像的标注数据包括所述训练图像中属于所述目标对象的像素的真值;所述第一分割部分51,配置为将待处理图像输入所述神经网络,通过所述神经网络预测所述待处理图像中属于目标对象的像素的信息;根据所述待处理图像中属于所述目标对象的像素的信息,得到所述待处理图像对应的初步分割图像。In a possible implementation manner, the apparatus further includes: a training part configured to train a neural network according to a training image and labeling data of the training image, wherein the labeling data of the training image includes The true value of the pixels belonging to the target object; the first segmentation part 51 is configured to input the image to be processed into the neural network, and predict the information of the pixels belonging to the target object in the image to be processed through the neural network ; Obtain a preliminary segmented image corresponding to the to-be-processed image according to the information of the pixels belonging to the target object in the to-be-processed image.
在一种可能的实现方式中,所述训练图像为电子计算机断层扫描CT图像;所述训练部分,配置为根据预设的CT值范围,对所述训练图像的像素值进行归一化处理,得到归一化的训练图像;根据归一化的训练图像和所述训练图像的标注数据训练所述神经网络。In a possible implementation manner, the training image is an electronic computed tomography CT image; the training part is configured to perform normalization processing on the pixel values of the training image according to a preset CT value range, A normalized training image is obtained; the neural network is trained according to the normalized training image and the labeled data of the training image.
在本公开实施例中,通过预测待处理图像中属于目标对象的像素,得到待处理图像对应的初步分割图像,根据待处理图像中所述目标对象的边缘信息,在初步分割图像中,对目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果,由此能够得到更准确、鲁棒的分割结果。In the embodiment of the present disclosure, a preliminary segmented image corresponding to the to-be-processed image is obtained by predicting the pixels belonging to the target object in the to-be-processed image, and according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image, the target Adjust the pixel values of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the object, and obtain the first segmentation result corresponding to the image to be processed, so that a more accurate and robust segmentation can be obtained. result.
图7示出本公开实施例提供的图像分割装置的另一框图。如图7所示,所述图像分割装置包括:第二分割部分61,配置为预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像;第一获取部分62,配置为获取与所述待处理图像相邻的图像以及所述相邻的图像对应的第二分割结果;第二调整部分63,配置为根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果。FIG. 7 shows another block diagram of an image segmentation apparatus provided by an embodiment of the present disclosure. As shown in FIG. 7 , the image segmentation device includes: a second segmentation part 61, configured to predict pixels belonging to the target object in the image to be processed, and obtain a preliminary segmented image corresponding to the image to be processed; a first acquisition part 62, is configured to obtain the image adjacent to the image to be processed and the second segmentation result corresponding to the adjacent image; the second adjustment part 63 is configured to be the same as the adjacent image according to the image to be processed The pixel value of the pixel at the position and the second segmentation result are used to adjust the preliminary segmented image to obtain a fourth segmentation result corresponding to the to-be-processed image.
在一种可能的实现方式中,所述第二调整部分63,配置为根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整初步分割图像,得到待处理图像对应的第四分割结果。In a possible implementation manner, the second adjustment part 63 is configured to, according to the adjacent images, belong to the target object in the second segmentation result, and are in the same range as the to-be-processed image. If the difference between the pixel values at the same position is less than or equal to the third preset value, the preliminary segmented image is adjusted to obtain a fourth segmented result corresponding to the image to be processed.
在一种可能的实现方式中,所述第二调整部分63,配置为根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集;根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集;将所述初步分割图像中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的第四分割结果。In a possible implementation manner, the second adjustment part 63 is configured to be less than or equal to a third preset value according to the difference between the pixel values in the image to be processed and the pixel values in the adjacent images at the same position obtain the first pixel set; according to the pixels belonging to the target object in the second segmentation result, the second pixel set is obtained; the second pixel set in the preliminary segmented image is The pixels of the set are adjusted to belong to the target object, and a fourth segmentation result corresponding to the image to be processed is obtained.
在一种可能的实现方式中,所述装置还包括:第四调整部分,配置为根据所述待处理图像中所述目标对象的边缘信息,在所述第四分割结果中、对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的的像素值进行调整,得到所述待处理图像对应的第五分割结果。In a possible implementation manner, the apparatus further includes: a fourth adjustment part, configured to, according to the edge information of the target object in the image to be processed, in the fourth segmentation result, perform an adjustment on the target The pixel values of the predicted pixels not belonging to the target object in the enclosed area included in the edge of the object are adjusted to obtain a fifth segmentation result corresponding to the image to be processed.
在一种可能的实现方式中,所述第四调整部分,配置为将所述第四分割结果中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到所述第四分割结果对应的填充后的初步分割图像;根据所述待处理图像中所述目标对象的边缘信息,对所述填充后的初步分割图像的像素值进行调整,得到所述待处理图像对应的第五分割结果。In a possible implementation manner, the fourth adjustment part is configured to adjust the pixel value of the enclosed area whose pixel value is the second preset value in the fourth segmentation result to the first preset value value to obtain the filled preliminary segmented image corresponding to the fourth segmentation result; according to the edge information of the target object in the to-be-processed image, adjust the pixel values of the filled preliminary segmented image to obtain the the fifth segmentation result corresponding to the image to be processed.
在一种可能的实现方式中,所述第四调整部分,配置为在所述第四分割结果的周围拼接预设宽度的边,得到拼接后的第四分割结果,其中,拼接的所述预设宽度的边的像素的像素值为所述第二预设值;选取所述拼接后的第四分割结果的图像边缘的像素作为种子点,对所述拼接后的第四分割结果进行泛洪填充操作,得到所述第四分割结果对应的填充后的初步分割图像。In a possible implementation manner, the fourth adjustment part is configured to splicing edges of a preset width around the fourth segmentation result to obtain a spliced fourth segmentation result, wherein the spliced The pixel value of the pixel of the side of the width is set to the second preset value; the pixel of the image edge of the fourth segmentation result after the splicing is selected as the seed point, and the fourth segmentation result after the splicing is flooded A filling operation is performed to obtain a filled preliminary segmented image corresponding to the fourth segmentation result.
在一种可能的实现方式中,所述第四调整部分,配置为根据所述待处理图像中所述目标对象的边缘信息,确定所述填充后的初步分割图像中所述目标对象的边缘所包含的最大连通域;将所述填充后的初步分割图像中所述最大连通域之外的像素的像素值调整为所述第二预设值,得到所述待处理图像对应的第五分割结果。In a possible implementation manner, the fourth adjustment part is configured to determine, according to edge information of the target object in the image to be processed, where the edge of the target object in the filled preliminary segmented image is located. The maximum connected domain included; the pixel values of the pixels outside the maximum connected domain in the filled preliminary segmented image are adjusted to the second preset value to obtain the fifth segmentation result corresponding to the image to be processed .
在本公开实施例中,能够保证待处理图像与第二分割结果的连续性,从而有助于得到更平滑、准确的三维分割结果。例如,所述目标对象为人体,则可以保证待处理图像与相邻的图像中人体的连续性,从而有助于得到更平滑、准确的三维人体分割结果。例如,可以采用本公开实施例得到CT图像序列中的各个CT图像对应的分割结果,由此得到更平滑、准确的三维人体分割结果。In the embodiment of the present disclosure, the continuity of the image to be processed and the second segmentation result can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional segmentation result. For example, if the target object is a human body, the continuity of the image to be processed and the human body in the adjacent images can be ensured, thereby helping to obtain a smoother and more accurate three-dimensional human body segmentation result. For example, a segmentation result corresponding to each CT image in the CT image sequence can be obtained by using the embodiments of the present disclosure, thereby obtaining a smoother and more accurate three-dimensional human body segmentation result.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的部分可以配置为执行上文方法实施例描述的方法,其具体实现和技术效果可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or included parts of the apparatus provided by the embodiments of the present disclosure may be configured to execute the methods described in the above method embodiments, and the specific implementation and technical effects may refer to the above method embodiments. It is concise and will not be repeated here.
在本公开实施例以及其他的实施例中,“部分”可以是部分电路、部分处理器、部分程序或软件等等,当然也可以是单元,还可以是模块也可以是非模块化的。In the embodiments of the present disclosure and other embodiments, a "part" may be a part of a circuit, a part of a processor, a part of a program or software, etc., of course, a unit, a module or a non-modularity.
本公开实施例还提供一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。其中,所述计算机可读存储介质可以是非易失性计算机可读存储介质,或者可以是易失性计算机可读存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented. Wherein, the computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.
本公开实施例还提出一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行配置为实现上述图像分割方法。An embodiment of the present disclosure further provides a computer program, including computer-readable code, when the computer-readable code is executed in an electronic device, the execution of the processor in the electronic device is configured to implement the above-mentioned image segmentation method.
本公开实施例还提供了另一种计算机程序产品,用于存储计算机可读指令,指令被执行时使得计算机执行上述任一实施例提供的图像分割方法的操作。Embodiments of the present disclosure further provide another computer program product for storing computer-readable instructions, which, when executed, cause the computer to perform the operations of the image segmentation method provided by any of the foregoing embodiments.
本公开实施例还提供一种电子设备,包括:一个或多个处理器;用于存储可执行指令的存储器;其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行上述方法。Embodiments of the present disclosure further provide an electronic device, including: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to invoke executable instructions stored in the memory instruction to execute the above method.
电子设备可以被提供为终端、服务器或其它形态的设备。The electronic device may be provided as a terminal, server or other form of device.
图8示出本公开实施例提供的一种电子设备800的框图。例如,电子设备800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。FIG. 8 shows a block diagram of an electronic device 800 provided by an embodiment of the present disclosure. For example, electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc. terminal.
参照图8,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。8, an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814 , and the communication component 816 .
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个部分,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体部分,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 802 may include one or more sections that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia portion to facilitate interaction between multimedia component 808 and processing component 802.
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 804 is configured to store various types of data to support operation at electronic device 800 . Examples of such data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. Memory 804 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。 Power supply assembly 806 provides power to various components of electronic device 800 . Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。 Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。 Audio component 810 is configured to output and/or input audio signals. For example, audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when electronic device 800 is in operating modes, such as calling mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 804 or transmitted via communication component 816 . In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,外围接口模块可以是键盘,点击轮,按钮等。按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. Buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传 感器组件814可以检测到电子设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如互补金属氧化物半导体(CMOS)或电荷耦合装置(CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of electronic device 800 . For example, the sensor assembly 814 can detect the on/off state of the electronic device 800, the relative positioning of the components, such as the display and the keypad of the electronic device 800, the sensor assembly 814 can also detect the electronic device 800 or one of the electronic device 800 Changes in the position of components, presence or absence of user contact with the electronic device 800 , orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如无线网络(Wi-Fi)、第二代移动通信技术(2G)、第三代移动通信技术(3G)、第四代移动通信技术(4G)/通用移动通信技术的长期演进(LTE)、第五代移动通信技术(5G)或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. The electronic device 800 can access a wireless network based on communication standards, such as wireless network (Wi-Fi), second generation mobile communication technology (2G), third generation mobile communication technology (3G), fourth generation mobile communication technology (4G) )/Long Term Evolution (LTE) of Universal Mobile Communications Technology, Fifth Generation Mobile Communications Technology (5G), or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他元件实现,用于执行上述方法。In an exemplary embodiment, electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmed gate array (FPGA), controller, microcontroller, microprocessor or other element implementation is used to perform the above method.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,包括计算机程序指令的存储器804,该计算机程序指令可由电子设备800的处理器820执行以完成上述方法。In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, comprising a memory 804 of computer program instructions executable by the processor 820 of the electronic device 800 to perform the above-described method.
图9示出本公开实施例提供的一种电子设备1900的框图。例如,电子设备1900可以被提供为一服务器。参照图9,电子设备1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的部分。此外,处理组件1922被配置为执行指令,以执行上述方法。FIG. 9 shows a block diagram of an electronic device 1900 provided by an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. 9, electronic device 1900 includes processing component 1922, which further includes one or more processors, and a memory resource represented by memory 1932 for storing instructions executable by processing component 1922, such as applications. An application program stored in memory 1932 may include one or more portions each corresponding to a set of instructions. Additionally, the processing component 1922 is configured to execute instructions to perform the above-described methods.
电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线网络接口1950被配置为将电子设备1900连接到网络,和一个输入输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如微软服务器操作系统(Windows ServerTM),苹果公司推出的基于图形用户界面操作系统(Mac OS XTM),多用户多进程的计算机操作系统(UnixTM),自由和开放原代码的类Unix操作系统(LinuxTM),开放原代码的类Unix操作系统(FreeBSDTM)或类似。The electronic device 1900 may also include a power supply assembly 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) interface 1958 . The electronic device 1900 can operate based on an operating system stored in the memory 1932, such as a Microsoft server operating system (Windows ServerTM), a graphical user interface based operating system (Mac OS XTM) introduced by Apple, a multi-user multi-process computer operating system (UnixTM). ), Free and Open Source Unix-like Operating System (LinuxTM), Open Source Unix-like Operating System (FreeBSDTM) or similar.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器1932,上述计算机程序指令可由电子设备1900的处理组件1922执行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as memory 1932 comprising computer program instructions executable by processing component 1922 of electronic device 1900 to perform the above-described method.
本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above. Computer-readable storage media, as used herein, are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分 地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。Computer program instructions for carrying out operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages. Source or object code, written in any combination, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the "C" language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through the Internet connect). In some embodiments, custom electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), can be personalized by utilizing state information of computer readable program instructions. Computer readable program instructions are executed to implement various aspects of the present disclosure.
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams. These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个部分、程序段或指令的一部分,所述部分、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a section, segment, or portion of instructions that includes one or more functions for implementing the specified logical function(s) executable instructions. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The computer program product can be specifically implemented by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Various embodiments of the present disclosure have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the various embodiments, the practical application or improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the various embodiments disclosed herein.
工业实用性Industrial Applicability
本公开实施例通过预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像;并根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果。这样,在目标对象为人体或者动物体的情况下,能够将目标对象的器官内部的像素也分割为属于目标对象,从而能够得到更准确、鲁棒的分割结果。In the embodiment of the present disclosure, a preliminary segmented image corresponding to the to-be-processed image is obtained by predicting the pixels belonging to the target object in the to-be-processed image; and according to the edge information of the target object in the to-be-processed image, the preliminary segmented image is In the process, the pixel values of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the target object are adjusted to obtain a first segmentation result corresponding to the image to be processed. In this way, when the target object is a human body or an animal body, the pixels inside the organs of the target object can also be segmented as belonging to the target object, so that a more accurate and robust segmentation result can be obtained.

Claims (17)

  1. 一种图像分割方法,包括:An image segmentation method, comprising:
    预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像;Predict the pixels belonging to the target object in the image to be processed, and obtain a preliminary segmented image corresponding to the image to be processed;
    根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果。According to the edge information of the target object in the to-be-processed image, in the preliminary segmented image, the pixel values of the predicted pixels that do not belong to the target object in the enclosed area included in the edge of the target object are determined. Adjustment is performed to obtain a first segmentation result corresponding to the image to be processed.
  2. 根据权利要求1所述的方法,其中,在所述初步分割图像中,预测的属于所述目标对象的像素的像素值为第一预设值,预测的不属于所述目标对象的像素的像素值为第二预设值;The method according to claim 1, wherein, in the preliminary segmented image, the predicted pixel value of the pixel belonging to the target object is a first preset value, and the predicted pixel value of the pixel not belonging to the target object is the first preset value. The value is the second preset value;
    所述根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果,包括:According to the edge information of the target object in the image to be processed, in the preliminary segmented image, in the closed area included in the edge of the target object, the predicted pixels that do not belong to the target object are analyzed. The pixel value is adjusted to obtain the first segmentation result corresponding to the to-be-processed image, including:
    将所述初步分割图像中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到填充后的初步分割图像;Adjusting the pixel value of the closed area whose pixel value is the second preset value in the preliminary segmented image to the first preset value, to obtain a filled preliminary segmented image;
    根据所述待处理图像中所述目标对象的边缘信息,对所述填充后的初步分割图像的像素值进行调整,得到所述待处理图像对应的所述第一分割结果。According to the edge information of the target object in the to-be-processed image, the pixel values of the filled preliminary segmented image are adjusted to obtain the first segmentation result corresponding to the to-be-processed image.
  3. 根据权利要求2所述的方法,其中,所述将所述初步分割图像中像素值为所述第二预设值的封闭区域的像素值调整为所述第一预设值,得到填充后的初步分割图像,包括:The method according to claim 2, wherein the pixel value of the closed area whose pixel value is the second preset value in the preliminary segmented image is adjusted to the first preset value to obtain the filled Preliminary segmented images, including:
    在所述初步分割图像的周围拼接预设宽度的边,得到拼接后的初步分割图像,其中,拼接的所述预设宽度的边的像素的像素值为所述第二预设值;Splicing edges of preset widths around the preliminary segmented images to obtain a preliminarily segmented image after splicing, wherein the pixel values of the pixels of the edges of the spliced preset widths are the second preset values;
    选取所述拼接后的初步分割图像的图像边缘的像素作为种子点,对所述拼接后的初步分割图像进行泛洪填充操作,得到所述填充后的初步分割图像。Selecting the pixels of the image edges of the spliced preliminary segmented images as seed points, and performing a flood filling operation on the spliced preliminary segmented images to obtain the filled preliminary segmented images.
  4. 根据权利要求2或3所述的方法,其中,所述根据所述待处理图像中所述目标对象的边缘信息,对所述填充后的初步分割图像的像素值进行调整,得到所述待处理图像对应的所述第一分割结果,包括:The method according to claim 2 or 3, wherein the pixel value of the filled preliminary segmented image is adjusted according to the edge information of the target object in the to-be-processed image to obtain the to-be-processed image. The first segmentation result corresponding to the image includes:
    根据所述待处理图像中所述目标对象的边缘信息,确定所述填充后的初步分割图像中所述目标对象的边缘所包含的最大连通域;According to the edge information of the target object in the image to be processed, determine the maximum connected domain included in the edge of the target object in the filled preliminary segmented image;
    将所述填充后的初步分割图像中所述最大连通域之外的像素的像素值调整为所述第二预设值,得到所述待处理图像对应的所述第一分割结果。The pixel values of the pixels outside the maximum connected region in the filled preliminary segmented image are adjusted to the second preset value to obtain the first segmentation result corresponding to the to-be-processed image.
  5. 根据权利要求1至4中任意一项所述的方法,其中,在所述得到所述待处理图像对应的第一分割结果之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein after obtaining the first segmentation result corresponding to the image to be processed, the method further comprises:
    获取与所述待处理图像相邻的图像以及所述相邻的图像对应的第二分割结果;acquiring an image adjacent to the to-be-processed image and a second segmentation result corresponding to the adjacent image;
    根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果。According to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, adjust the first segmentation result to obtain a third segmentation result corresponding to the to-be-processed image .
  6. 根据权利要求5所述的方法,其中,所述根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述第一分割结果,得到所述待处理图像对应的第三分割结果,包括:The method according to claim 5, wherein the first segmentation result is adjusted according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result , obtain the third segmentation result corresponding to the image to be processed, including:
    根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述第一分割结果,得到所述待处理图像对应的所述第三分割结果。According to the pixels in the adjacent images that belong to the target object in the second segmentation result and have a difference value of the pixel value at the same position as the image to be processed is less than or equal to a third preset value, The first segmentation result is adjusted to obtain the third segmentation result corresponding to the to-be-processed image.
  7. 根据权利要求6所述的方法,其中,所述根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述第一分割结果,得到所述待处理图像对应的所述第三分割结果,包括:The method according to claim 6, wherein, according to the adjacent images, in the second segmentation result, the pixel values that belong to the target object and are in the same position as the image to be processed For pixels whose difference value is less than or equal to the third preset value, adjust the first segmentation result to obtain the third segmentation result corresponding to the image to be processed, including:
    根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集;Obtain the first pixel set according to the pixel whose difference value of the pixel value at the same position in the image to be processed and the adjacent image is less than or equal to the third preset value;
    根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集;Obtain a second pixel set according to the pixels belonging to the target object in the second segmentation result in the first pixel set;
    将所述第一分割结果中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的所述第三分割结果。Adjusting the pixels of the second pixel set in the first segmentation result to belong to the target object to obtain the third segmentation result corresponding to the image to be processed.
  8. 根据权利要求1至7中任意一项所述的方法,其中,在所述预测待处理图像中属于目标 对象的像素之前,所述方法还包括:根据训练图像和所述训练图像的标注数据训练神经网络,其中,所述训练图像的标注数据包括所述训练图像中属于所述目标对象的像素的真值;The method according to any one of claims 1 to 7, wherein before predicting the pixels belonging to the target object in the image to be processed, the method further comprises: training according to the training image and the labeling data of the training image A neural network, wherein the labeled data of the training image includes the true value of pixels belonging to the target object in the training image;
    所述预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像,包括:将所述待处理图像输入所述神经网络,通过所述神经网络预测所述待处理图像中属于所述目标对象的像素的信息;根据所述待处理图像中属于所述目标对象的像素的信息,得到所述待处理图像对应的初步分割图像。The predicting the pixels belonging to the target object in the image to be processed to obtain a preliminary segmented image corresponding to the image to be processed includes: inputting the image to be processed into the neural network, and predicting the image to be processed through the neural network According to the information of the pixels belonging to the target object in the to-be-processed image, a preliminary segmented image corresponding to the to-be-processed image is obtained.
  9. 根据权利要求8所述的方法,其中,The method of claim 8, wherein,
    所述训练图像为电子计算机断层扫描CT图像;The training image is an electronic computed tomography CT image;
    所述根据训练图像和所述训练图像的标注数据训练神经网络,包括:根据预设的CT值范围,对所述训练图像的像素值进行归一化处理,得到归一化的训练图像;根据所述归一化的训练图像和所述训练图像的标注数据训练所述神经网络。The training of the neural network according to the training image and the labeled data of the training image includes: normalizing the pixel values of the training image according to a preset CT value range to obtain a normalized training image; The normalized training image and the labeled data of the training image train the neural network.
  10. 一种图像分割方法,包括:An image segmentation method, comprising:
    预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像;Predict the pixels belonging to the target object in the image to be processed, and obtain a preliminary segmented image corresponding to the image to be processed;
    获取与所述待处理图像相邻的图像以及所述相邻的图像对应的第二分割结果;acquiring an image adjacent to the to-be-processed image and a second segmentation result corresponding to the adjacent image;
    根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果。According to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, the preliminary segmented image is adjusted to obtain a fourth segmentation result corresponding to the to-be-processed image.
  11. 根据权利要求10所述的方法,其中,所述根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果,包括:The method according to claim 10, wherein, according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result, the preliminary segmented image is adjusted, Obtain the fourth segmentation result corresponding to the to-be-processed image, including:
    根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述初步分割图像,得到所述待处理图像对应的所述第四分割结果。According to the pixels in the adjacent images that belong to the target object in the second segmentation result and have a difference value of the pixel value at the same position as the image to be processed is less than or equal to a third preset value, Adjust the preliminary segmented image to obtain the fourth segmentation result corresponding to the to-be-processed image.
  12. 根据权利要求11所述的方法,其中,所述根据所述相邻的图像中,在所述第二分割结果中属于所述目标对象、且与所述待处理图像在相同位置的像素值的差值小于或等于第三预设值的像素,调整所述初步分割图像,得到所述待处理图像对应的所述第四分割结果,包括:The method according to claim 11, wherein, according to the adjacent images, in the second segmentation result, the pixel values that belong to the target object and are in the same position as the image to be processed For pixels whose difference is less than or equal to the third preset value, adjust the preliminary segmented image to obtain the fourth segmentation result corresponding to the to-be-processed image, including:
    根据所述待处理图像与所述相邻的图像中在相同位置的像素值的差值小于或等于第三预设值的像素,得到第一像素集;Obtain the first pixel set according to the pixel whose difference value of the pixel value at the same position in the image to be processed and the adjacent image is less than or equal to the third preset value;
    根据所述第一像素集中在所述第二分割结果中属于所述目标对象的像素,得到第二像素集;Obtain a second pixel set according to the pixels belonging to the target object in the second segmentation result in the first pixel set;
    将所述初步分割图像中所述第二像素集的像素调整为属于所述目标对象,得到所述待处理图像对应的所述第四分割结果。The pixels of the second pixel set in the preliminary segmented image are adjusted to belong to the target object, and the fourth segmentation result corresponding to the image to be processed is obtained.
  13. 一种图像分割装置,包括:An image segmentation device, comprising:
    第一分割部分,配置为预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像;a first segmentation part, configured to predict pixels belonging to the target object in the to-be-processed image, and obtain a preliminary segmented image corresponding to the to-be-processed image;
    第一调整部分,配置为根据所述待处理图像中所述目标对象的边缘信息,在所述初步分割图像中,对所述目标对象的边缘所包含的封闭区域中、预测的不属于所述目标对象的像素的像素值进行调整,得到所述待处理图像对应的第一分割结果。The first adjustment part is configured to, according to the edge information of the target object in the to-be-processed image, in the preliminary segmented image, predict that in the enclosed area included in the edge of the target object, those that do not belong to the The pixel values of the pixels of the target object are adjusted to obtain a first segmentation result corresponding to the image to be processed.
  14. 一种图像分割装置,包括:An image segmentation device, comprising:
    第二分割部分,配置为预测待处理图像中属于目标对象的像素,得到所述待处理图像对应的初步分割图像;The second segmentation part is configured to predict the pixels belonging to the target object in the to-be-processed image, and obtain a preliminary segmented image corresponding to the to-be-processed image;
    第一获取部分,配置为获取与所述待处理图像相邻的图像以及所述相邻的图像对应的第二分割结果;a first acquiring part, configured to acquire an image adjacent to the to-be-processed image and a second segmentation result corresponding to the adjacent image;
    第二调整部分,配置为根据所述待处理图像与所述相邻的图像中相同位置的像素的像素值,以及所述第二分割结果,调整所述初步分割图像,得到所述待处理图像对应的第四分割结果。The second adjustment part is configured to adjust the preliminary divided image according to the pixel value of the pixel at the same position in the image to be processed and the adjacent image, and the second segmentation result to obtain the image to be processed The corresponding fourth segmentation result.
  15. 一种电子设备,包括:An electronic device comprising:
    一个或多个处理器;one or more processors;
    配置为存储可执行指令的存储器;memory configured to store executable instructions;
    其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行权利要求1至12中任意一项所述的方法。wherein the one or more processors are configured to invoke executable instructions stored in the memory to perform the method of any one of claims 1-12.
  16. 一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现权利要求1至12中任意一项所述的方法。A computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the method of any one of claims 1 to 12 when executed by a processor.
  17. 一种计算机程序,包括计算机可读代码,在所述计算机可读代码在电子设备中运行的情 况下,所述电子设备中的处理器执行时实现权利要求1至12中任意一项所述的方法。A computer program, comprising computer-readable codes, when the computer-readable codes are executed in an electronic device, the processor in the electronic device implements the method described in any one of claims 1 to 12 when executed. method.
PCT/CN2020/138131 2020-08-17 2020-12-21 Image segmentation method and apparatus, and electronic device and storage medium WO2022036972A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020227001101A KR20220012407A (en) 2020-08-17 2020-12-21 Image segmentation method and apparatus, electronic device and storage medium
JP2021576593A JP2022548453A (en) 2020-08-17 2020-12-21 Image segmentation method and apparatus, electronic device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010827077.1 2020-08-17
CN202010827077.1A CN111899268B (en) 2020-08-17 2020-08-17 Image segmentation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022036972A1 true WO2022036972A1 (en) 2022-02-24

Family

ID=73229690

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/138131 WO2022036972A1 (en) 2020-08-17 2020-12-21 Image segmentation method and apparatus, and electronic device and storage medium

Country Status (3)

Country Link
CN (1) CN111899268B (en)
TW (1) TW202209254A (en)
WO (1) WO2022036972A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114862869A (en) * 2022-03-30 2022-08-05 北京理工大学 Kidney tissue segmentation method and device based on CT (computed tomography) image
CN114913187A (en) * 2022-05-25 2022-08-16 北京百度网讯科技有限公司 Image segmentation method, training method, device, electronic device and storage medium
CN117635645A (en) * 2023-12-08 2024-03-01 兰州交通大学 Juxtaposed multi-scale fusion edge detection model under complex dense network

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111899268B (en) * 2020-08-17 2022-02-18 上海商汤智能科技有限公司 Image segmentation method and device, electronic equipment and storage medium
CN113063742A (en) * 2021-03-24 2021-07-02 和数科技(浙江)有限公司 Method and system for measuring vegetation biomass, storage medium and terminal
CN113079383B (en) * 2021-03-25 2023-06-20 北京市商汤科技开发有限公司 Video processing method, device, electronic equipment and storage medium
CN113655973B (en) * 2021-07-16 2023-12-26 深圳价值在线信息科技股份有限公司 Page segmentation method and device, electronic equipment and storage medium
CN113284076A (en) * 2021-07-22 2021-08-20 烟台市综合信息中心(烟台市市民卡管理中心) FloodFill-based high-speed rail contact net current-carrying ring fracture abnormity detection method
CN114550129B (en) * 2022-01-26 2023-07-18 江苏联合职业技术学院苏州工业园区分院 Machine learning model processing method and system based on data set
TWI803223B (en) * 2022-03-04 2023-05-21 國立中正大學 Method for detecting object of esophageal cancer in hyperspectral imaging

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104143190A (en) * 2014-07-24 2014-11-12 东软集团股份有限公司 Method and system for partitioning construction in CT image
CN105894517A (en) * 2016-04-22 2016-08-24 北京理工大学 CT image liver segmentation method and system based on characteristic learning
US20180308237A1 (en) * 2017-04-21 2018-10-25 Samsung Electronics Co., Ltd. Image segmentation method and electronic device therefor
CN109949309A (en) * 2019-03-18 2019-06-28 安徽紫薇帝星数字科技有限公司 A kind of CT image for liver dividing method based on deep learning
CN111899268A (en) * 2020-08-17 2020-11-06 上海商汤智能科技有限公司 Image segmentation method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9972092B2 (en) * 2016-03-31 2018-05-15 Adobe Systems Incorporated Utilizing deep learning for boundary-aware image segmentation
CN109993750B (en) * 2017-12-29 2020-12-25 中国科学院深圳先进技术研究院 Segmentation identification method and system for wrist bones, terminal and readable storage medium
CN109886243B (en) * 2019-03-01 2021-03-26 腾讯医疗健康(深圳)有限公司 Image processing method, device, storage medium, equipment and system
CN110910396A (en) * 2019-10-18 2020-03-24 北京量健智能科技有限公司 Method and device for optimizing image segmentation result
CN110782468B (en) * 2019-10-25 2023-04-07 北京达佳互联信息技术有限公司 Training method and device of image segmentation model and image segmentation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104143190A (en) * 2014-07-24 2014-11-12 东软集团股份有限公司 Method and system for partitioning construction in CT image
CN105894517A (en) * 2016-04-22 2016-08-24 北京理工大学 CT image liver segmentation method and system based on characteristic learning
US20180308237A1 (en) * 2017-04-21 2018-10-25 Samsung Electronics Co., Ltd. Image segmentation method and electronic device therefor
CN109949309A (en) * 2019-03-18 2019-06-28 安徽紫薇帝星数字科技有限公司 A kind of CT image for liver dividing method based on deep learning
CN111899268A (en) * 2020-08-17 2020-11-06 上海商汤智能科技有限公司 Image segmentation method and device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114862869A (en) * 2022-03-30 2022-08-05 北京理工大学 Kidney tissue segmentation method and device based on CT (computed tomography) image
CN114913187A (en) * 2022-05-25 2022-08-16 北京百度网讯科技有限公司 Image segmentation method, training method, device, electronic device and storage medium
CN117635645A (en) * 2023-12-08 2024-03-01 兰州交通大学 Juxtaposed multi-scale fusion edge detection model under complex dense network
CN117635645B (en) * 2023-12-08 2024-06-04 兰州交通大学 Juxtaposed multi-scale fusion edge detection model under complex dense network

Also Published As

Publication number Publication date
TW202209254A (en) 2022-03-01
CN111899268A (en) 2020-11-06
CN111899268B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
WO2022036972A1 (en) Image segmentation method and apparatus, and electronic device and storage medium
US12002212B2 (en) Image segmentation method and apparatus, computer device, and storage medium
WO2021147257A1 (en) Network training method and apparatus, image processing method and apparatus, and electronic device and storage medium
US10956714B2 (en) Method and apparatus for detecting living body, electronic device, and storage medium
WO2022151755A1 (en) Target detection method and apparatus, and electronic device, storage medium, computer program product and computer program
CN111310616B (en) Image processing method and device, electronic equipment and storage medium
CN109658401B (en) Image processing method and device, electronic equipment and storage medium
US20210097715A1 (en) Image generation method and device, electronic device and storage medium
US20210133468A1 (en) Action Recognition Method, Electronic Device, and Storage Medium
RU2577188C1 (en) Method, apparatus and device for image segmentation
WO2020134866A1 (en) Key point detection method and apparatus, electronic device, and storage medium
TWI755175B (en) Image segmentation method, electronic device and storage medium
CN112767329B (en) Image processing method and device and electronic equipment
WO2017031901A1 (en) Human-face recognition method and apparatus, and terminal
CN113222038B (en) Breast lesion classification and positioning method and device based on nuclear magnetic image
WO2022156235A1 (en) Neural network training method and apparatus, image processing method and apparatus, and electronic device and storage medium
KR20220013404A (en) Image processing method and apparatus, electronic device, storage medium and program product
WO2023050691A1 (en) Image processing method and apparatus, and electronic device, storage medium and program
TWI765386B (en) Neural network training and image segmentation method, electronic device and computer storage medium
WO2022022350A1 (en) Image processing method and apparatus, electronic device, storage medium, and computer program product
WO2021259390A2 (en) Coronary artery calcified plaque detection method and apparatus
CN114820584A (en) Lung focus positioner
CN111640114B (en) Image processing method and device
CN115170464A (en) Lung image processing method and device, electronic equipment and storage medium
WO2023050690A1 (en) Image processing method and apparatus, electronic device, storage medium, and program

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2021576593

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20227001101

Country of ref document: KR

Kind code of ref document: A

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

Ref document number: 20950173

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 20950173

Country of ref document: EP

Kind code of ref document: A1