Image artifact removal method, device, electronic device and storage medium

By converting the image from Cartesian coordinates to polar coordinates and using the artifact removal model, the problem of image artifacts caused by wires is solved, efficient removal of intravascular ultrasound sampling is achieved, the process is simplified and the time cost is reduced.

CN114445515BActive Publication Date: 2024-10-18SONOSEMI MEDICAL CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210135312.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-14
Publication Date
2024-10-18
Estimated Expiration
2042-02-14

AI Technical Summary

Technical Problem

During the intravascular ultrasound sampling process, image artifacts caused by wires are difficult to remove quickly and effectively, existing algorithms cannot effectively handle high- and low-frequency noise, and traditional methods increase the time cost of sampling.

Method used

Image artifact removal is performed by converting the image to be processed from Cartesian coordinates to polar coordinates and using a pre-trained artifact removal model, including an image generator and a discriminator. The model is trained on images in polar coordinates based on artifact-free and artifact-present images, generates artifact-free images, and converts them back to Cartesian coordinates.

Benefits of technology

It achieves rapid and effective removal of image artifacts, simplifies the process, reduces time costs, and improves the accuracy of intuitive image analysis and post-data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114445515B_ABST
    Figure CN114445515B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, electronic device and storage medium for removing image artifacts, wherein the method comprises: obtaining an image to be processed with image artifact information to be removed, converting the image coordinates of the image to be processed from Cartesian coordinates to polar coordinates to obtain a target processed image; inputting the image to be processed into a pre-trained artifact removal model to obtain a target generated image corresponding to the image to be processed; wherein the artifact removal model is obtained by training a pre-established image processing model according to a sample processed image and an artifact-free image corresponding to the sample processed image, and the image processing model comprises an image generator, a first discriminator for discriminating whether the input image to be discriminated is an artifact-free image, and a second discriminator for discriminating whether the input image to be discriminated is image data generated by the generator. The technical solution of the embodiment of the present invention can simply, quickly and effectively remove image artifacts from the image to be processed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an image artifact removal method, device, electronic equipment and storage medium. Background Art

[0002] During intravascular ultrasound sampling (IVUS), a guide wire is often used to guide the catheter. However, the presence of the guide wire hinders the transmission and acquisition of ultrasound signals, causing artifacts in the generated images, which not only affects the intuitive analysis of vascular sections, but also affects the subsequent data processing algorithms (such as tubular and tunical segmentation).

[0003] In terms of noise reduction technology, there are relatively mature solutions for random noise like Gaussian pulse noise, such as the traditional early geometric flow (also known as Geometric Flow Diffusion) and the now extremely optimized curvature filtering.

[0004] However, the noise caused by wire afterimages is quite different from pulse noise. The image artifacts caused by wire afterimages are generally large in area, often occupying 50-300 or even more pixels, while the above algorithms are often more precise in area and more suitable for high-frequency noise, and cannot effectively process high- and low-frequency noise. In addition, there are also methods to replace the artifact area through secondary or more sampling, but the disadvantage of this method is that it greatly increases the time cost of sampling. Summary of the invention

[0005] The embodiments of the present invention provide a method, a device, an electronic device and a storage medium for removing image artifacts, so as to solve the problem that artifacts in images cannot be removed quickly and effectively.

[0006] According to one aspect of the present invention, a method for removing image artifacts is provided, the method comprising:

[0007] Acquire an image to be processed whose image artifact information is to be removed, and convert the image coordinates of the image to be processed from Cartesian coordinates to polar coordinates to obtain a target processed image;

[0008] Inputting the target processed image into a pre-trained artifact removal model to obtain an artifact-removed image corresponding to the target processed image;

[0009] Converting the image coordinates of the de-artifacted image from a polar coordinate system to a Cartesian coordinate system to obtain a target output image;

[0010] Among them, the artifact removal model is obtained by training a pre-established image processing model based on an artifact-free image located in a polar coordinate system and an artifact-containing image containing image artifact information. The image processing model includes an image generator, a first discriminator and a second discriminator. The image generator is used to remove image artifact information to generate an artifact-free image, the first discriminator is used to determine whether the input image to be determined is an artifact-free image, and the second discriminator is used to determine whether the input image to be determined is image data generated by the image generator.

[0011] Optionally, the artifact removal model is trained in the following manner:

[0012] Inputting a sample processed image into the image generator to obtain a model generated image, wherein the sample processed image includes an artifact-free image and an artifact-containing image including image artifact information;

[0013] Calculate the model generation loss of the image generator for the model-generated image corresponding to the artifact-free image and the image generator for the artifact-free image, and calculate the first discriminant loss of the first discriminator for the model-generated image corresponding to the image with artifacts and the second discriminant loss of the second discriminator for the model-generated image corresponding to the image with artifacts;

[0014] The image generator is adjusted according to the model generation loss, the first discriminant loss and the second discriminant loss to obtain an artifact removal model.

[0015] Optionally, the first discriminator is trained in the following manner:

[0016] Inputting a first training sample image into a first discriminator to obtain a first model discrimination result corresponding to the first training sample image, wherein the first training sample image includes a model-generated image corresponding to the image with artifacts and the image without artifacts;

[0017] The model parameters of the first discriminator are adjusted according to the loss between the first model discrimination result and the first expected discrimination result to optimize the first discriminator.

[0018] Optionally, the second discriminator is trained in the following manner:

[0019] Inputting the second training sample image into the second discriminator, and obtaining a second model discrimination result corresponding to the second training sample image, wherein the second training sample image includes the image with artifacts, the image without artifacts, the model-generated image corresponding to the image with artifacts, and the model-generated image corresponding to the image without artifacts;

[0020] The model parameters of the second discriminator are adjusted according to the loss between the second model discrimination result and the second expected discrimination result to optimize the second discriminator.

[0021] Optionally, the method further comprises:

[0022] An original image containing image artifact information is acquired, and image segmentation is performed on the original image to obtain an artifact-free image and an artifact-containing image containing image artifact information, and the artifact-free image and the artifact-containing image are used as sample processing images.

[0023] Optionally, the performing image segmentation on the original image to obtain an artifact-free image and an artifact-containing image including image artifact information includes:

[0024] Converting the image coordinates of the original image from Cartesian coordinates to polar coordinates to obtain a polar coordinate image;

[0025] Acquire artifact coordinates corresponding to the image artifact information marked in the polar coordinate image, and determine an image segmentation line according to the artifact coordinates, wherein the image segmentation line is located in an area of ​​the original image except an area where the image artifact information is located;

[0026] The polar coordinate image is divided into an artifact-free image and an artifact-containing image containing image artifact information according to the image division line.

[0027] Optionally, the method further comprises:

[0028] Determining scroll information of the polar coordinate image according to image artifact information in the polar coordinate image, wherein the scroll information includes a scroll direction and a scroll range;

[0029] The polar coordinate image is scrolled according to the scroll information, and the operation of returning to obtain the artifact coordinates corresponding to the image artifact information marked in the polar coordinate image, and determining the image segmentation line according to the artifact coordinates.

[0030] According to another aspect of the present invention, there is provided an image artifact removal device, the device comprising:

[0031] A target processing image acquisition module is used to acquire a to-be-processed image whose image artifact information is to be removed, and convert the image coordinates of the to-be-processed image from Cartesian coordinates to polar coordinates to obtain a target processing image;

[0032] An artifact-free image generation module is used to input the target processed image into a pre-trained artifact removal model to obtain an artifact-free image corresponding to the target processed image;

[0033] A target image output module, used for converting the image coordinates of the de-artifacted image from a polar coordinate system to a Cartesian coordinate system to obtain a target output image;

[0034] Among them, the artifact removal model is obtained by training a pre-established image processing model based on an artifact-free image located in a polar coordinate system and an artifact-containing image containing image artifact information. The image processing model includes an image generator, a first discriminator and a second discriminator. The image generator is used to remove image artifact information to generate an artifact-free image, the first discriminator is used to determine whether the input image to be determined is an artifact-free image, and the second discriminator is used to determine whether the input image to be determined is image data generated by the image generator.

[0035] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0036] at least one processor; and

[0037] a memory communicatively connected to the at least one processor; wherein,

[0038] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the image artifact removal method described in any embodiment of the present invention.

[0039] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the image artifact removal method described in any embodiment of the present invention when executed.

[0040] The technical solution of the embodiment of the present invention obtains the image to be processed with the image artifact information to be removed, converts the image coordinates of the image to be processed from Cartesian coordinates to polar coordinates, obtains the target processed image, and then inputs the target processed image into a pre-trained artifact removal model to obtain the target generated image without artifacts corresponding to the image to be processed. Since the initial model corresponding to the artifact removal model, i.e., the image processing model, includes an image generator, a first discriminator, and a second discriminator, it is possible to determine whether the input image to be determined is an artifact-free image through the first discriminator, and determine whether the input image to be determined is image data generated by the image generator through the second discriminator, thereby ensuring the artifact removal effect of the image generator on the image to be processed, solving the technical problems that the related technology cannot effectively remove image artifacts and takes too long, and can simply, quickly and effectively realize the intelligent removal of image artifacts in the image to be processed.

[0041] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 is a flow chart of a method for removing image artifacts provided according to Embodiment 1 of the present invention;

[0044] Figure 2 is a flow chart of a method for removing image artifacts provided according to Embodiment 2 of the present invention;

[0045] Figure 3 is a comparison diagram of the effects of image preprocessing provided by the third embodiment of the present invention;

[0046] Figure 4 is a comparison diagram of the effect of converting the original image from Cartesian coordinates to polar coordinates according to the third embodiment of the present invention;

[0047] Figure 5 is a schematic diagram of the effect of marking the artifact coordinates of the image artifacts in the original image provided by the third embodiment of the present invention;

[0048] Figure 6 is a comparison diagram of the effects before and after the original image is scrolled according to the third embodiment of the present invention;

[0049] Figure 7 is a schematic diagram of the effects before and after the original image is segmented according to the third embodiment of the present invention;

[0050] Figure 8 is a comparison diagram of the effects before and after image flipping provided by Embodiment 3 of the present invention;

[0051] Fig. 9 This is a comparison diagram of the effects before and after an artifact removal model is input into an artifact image according to the third embodiment of the present invention;

[0052] Fig.10 This is a comparison diagram of the effects before and after the artifact removal model is input into the artifact-free image provided by the third embodiment of the present invention;

[0053] Fig.11is a comparison diagram of the effect of the image to be processed and the target output image provided by the third embodiment of the present invention;

[0054] Fig.12 A schematic diagram of the structure of an image artifact removal device provided in Embodiment 4 of the present invention;

[0055] Fig.13 It is a structural schematic diagram of an electronic device for implementing the image artifact removal method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0057] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0058] Embodiment 1

[0059] Figure 1 This is a flowchart of a method for removing image artifacts provided in the first embodiment of the present invention. This embodiment is applicable to the case of automatically removing artifacts in images, and is particularly applicable to the scene of removing image artifacts in medical images. The method can be executed by an image artifact removal device, which can be implemented in the form of hardware and / or software, and can be configured in a server and / or terminal. Figure 1 As shown, the method includes:

[0060] S110 , obtaining an image to be processed from which image artifact information is to be removed, and converting image coordinates of the image to be processed from Cartesian coordinates to polar coordinates to obtain a target processed image.

[0061] The image to be processed can be understood as an image to be processed to remove image artifact information, and the image to be processed can contain image artifact information or can contain image artifact information. The target processing image can be understood as an image to be processed in a polar coordinate system. Cartesian coordinates can be understood as coordinates in a rectangular coordinate system or an oblique coordinate system.

[0062] Generally, the image to be processed is obtained as an image in Cartesian coordinates. Most of the images actually collected often contain image artifacts, which is why many studies have been conducted on how to remove image artifacts. When removing image artifacts based on artificial intelligence technology, a large number of images with artifacts and without artifacts are often required as model training samples. Since there are many practical difficulties in obtaining artifact-free images in a Cartesian coordinate system, an embodiment of the present invention proposes a method of obtaining an artifact removal model by training a pre-established image processing model based on an artifact-free image in a polar coordinate system and an artifact-containing image with image artifact information, thereby ensuring the model training effect and thereby improving the image artifact removal effect. In a specific application, after the image coordinates of the image to be processed are converted from Cartesian coordinates to polar coordinates, the image in the polar coordinate system, i.e., the target processing image, is subjected to artifact removal processing by the artifact removal model.

[0063] S120, inputting the target processed image into a pre-trained artifact removal model to obtain an artifact-removed image corresponding to the target processed image.

[0064] Among them, the artifact removal model is obtained by training a pre-established image processing model based on an artifact-free image located in a polar coordinate system and an artifact-containing image containing image artifact information. The image processing model includes an image generator, a first discriminator and a second discriminator. The image generator is used to remove image artifact information to generate an artifact-free image, the first discriminator is used to determine whether the input image to be determined is an artifact-free image, and the second discriminator is used to determine whether the input image to be determined is image data generated by the image generator.

[0065] Since an important characteristic of the polar coordinate system is that any point in the Cartesian coordinate system can be expressed in infinite forms in the polar coordinate system, the advantage of the artifact removal model training the pre-established image processing model based on the artifact-free image in the polar coordinate system and the artifact-containing image with image artifact information is that the training samples of the artifact removal model can be processed more conveniently.

[0066] Among them, the image generator can be a convolution-based image generation model. The image generation model is different from the conventional discriminant model and regression model, and is mainly used to generate data, especially the convolution generation model, which specializes in generating two-dimensional data. Taking the visual neural network, such as ResNet, as an example, the convolution performed in the network is to extract features of the image through the convolution kernel, while the convolution generation model performs the opposite operation, generating images through feature vectors and convolution kernels, and the process is called deconvolution. In an embodiment of the present invention, the image generator is trained with artifact-free images located in a polar coordinate system and artifact images containing image artifact information as training samples. In order to improve the resolution of the image generated by the image generation model, a residual module can be added on the basis of convolution, and the size of the input image can also be limited.

[0067] In the process of implementing the present invention, the inventors found that when the structure of the discriminator is relatively simple, it is more friendly to the training results of the image generator. Optionally, the first discriminator and the second discriminator can adopt a convolutional network with a relatively simple structure, such as a 3-layer convolutional network. Among them, the first discriminator can be trained with the output image of the image with artifacts generated by the image generator and the image without artifacts as training samples, which is used to discriminate whether the input image to be discriminated is an artifact-free image, so as to judge whether the output image of the image generator is an artifact-free image, thereby verifying the artifact removal effect of the image generator. Exemplarily, the second discriminator can be used to discriminate whether the input image to be discriminated is the image data generated by the generator with an artifact image, an artifact-free image, an image generated by the image generation module corresponding to the image with artifacts, and an image generated by the image generation module corresponding to the artifact-free image, so as to promote the image data generated by the image generation module to be closer to the real data.

[0068] S130 , converting the image coordinates of the de-artifacted image from a polar coordinate system to a Cartesian coordinate system to obtain a target output image.

[0069] Since the target processed image input into the artifact removal model is an image in the polar coordinate system, the artifact-free image output by the artifact removal model is also a polar coordinate image. Converting the image coordinates of the artifact-free image from the polar coordinate system to Cartesian coordinates can ensure that the target output image actually obtained has the same presentation method as the acquired image to be processed, so as to intuitively understand the effect of removing image artifacts, and it is also convenient for later image viewing.

[0070] The technical solution of this embodiment is to obtain the image to be processed with the image artifact information to be removed, convert the image coordinates of the image to be processed from Cartesian coordinates to polar coordinates, obtain the target processed image, and then input the target processed image into the pre-trained artifact removal model to obtain the target generated image without artifacts corresponding to the image to be processed. Since the initial model corresponding to the artifact removal model, that is, the image processing model, includes an image generator, a first discriminator and a second discriminator, it is possible to determine whether the input image to be determined is an artifact-free image through the first discriminator, and determine whether the input image to be determined is image data generated by the image generator through the second discriminator, thereby ensuring the artifact removal effect of the image generator on the image to be processed, solving the technical problems that the related technology cannot effectively remove image artifacts and takes too long, and can simply, quickly and effectively realize the intelligent removal of image artifacts in the image to be processed.

[0071] Embodiment 2

[0072] Figure 2 A flowchart of an image artifact removal method provided in the second embodiment of the present invention, this embodiment further refines the training process of the artifact removal model on the basis of the above embodiment. Optionally, the artifact removal model is trained in the following manner: a sample processed image is input into the image generator to obtain a model generated image, wherein the sample processed image includes an artifact-free image and an artifact image containing image artifact information; the model generation loss of the image generator is calculated by calculating the model generated image corresponding to the artifact-free image and the artifact-free image, and the first discriminant loss of the first discriminant for the model generated image corresponding to the artifact image and the second discriminant loss of the second discriminant for the model generated image corresponding to the artifact image; the image generator is adjusted according to the model generation loss, the first discriminant loss and the second discriminant loss to obtain the artifact removal model. The technical terms and technical features that are the same as those in the above embodiment are not repeated here.

[0073] like Figure 2 As shown, the method includes:

[0074] S210 , inputting a sample processed image into an image generator to obtain a model generated image, wherein the sample processed image includes an artifact-free image and an artifact-containing image having image artifact information.

[0075] The sample processed image can be understood as a training sample image used to train the image generator, the first discriminator and the second discriminator.

[0076] It can be understood that before the sample processed image is input into the image generator, it also includes: obtaining the sample processed image. In the embodiment of the present invention, there are many ways to obtain the sample processed image, for example, it can be to collect the sample processed image through an image acquisition device, obtain a historical image that meets the requirements from a database as the sample processed image, or obtain the sample processed image after image processing on the original image that can be obtained.

[0077] Exemplarily, obtaining a sample processed image may specifically include: obtaining an original image containing image artifact information, performing image segmentation on the original image to obtain an artifact-free image and an artifact-containing image containing image artifact information, and using the artifact-free image and the artifact-containing image as sample processed images. Considering that in practical applications, the original images that can be directly processed as model training samples are often limited, especially valuable medical images, and the sample size of artifact-free medical images is even smaller. However, model training often requires a large number of images. In an embodiment of the present invention, by performing image segmentation on the original image, an artifact-free image can be segmented from an artifact-containing image, which can effectively increase the sample size of the artifact-free image, thereby ensuring the training effect of the model.

[0078] Specifically, the original image is segmented to obtain an artifact-free image and an artifact-containing image including image artifact information, including: converting the image coordinates of the original image from Cartesian coordinates to polar coordinates to obtain a polar coordinate image; obtaining artifact coordinates corresponding to the image artifact information marked in the polar coordinate image, and determining an image segmentation line according to the artifact coordinates, wherein the image segmentation line is located in an area of ​​the original image excluding an area where the image artifact information is located; and segmenting the polar coordinate image into an artifact-free image and an artifact-containing image including image artifact information according to the image segmentation line.

[0079] As mentioned above, the image coordinates of the original image are generally Cartesian coordinates, so the image coordinates of the original image can be converted from Cartesian coordinates to polar coordinates. In the polar coordinate image, the image can be regarded as being in a state of being connected end to end. During the model training process, samples of the same size can be used to process the image. At this time, the image can be divided into two by the image segmentation line, that is, the image is divided into two halves. Since the image segmentation line is located in the original image except for the area where the image artifact information is located, an artifact-free image of the same size and an artifact-containing image containing image artifact information can be obtained.

[0080] As mentioned above, model training often requires a large number of images. Therefore, the sample processing images can be further increased by image processing. For example, the polar coordinate image can be re-segmented after adjusting the position of the image artifact in the polar coordinate image to segment new images with artifacts and images without artifacts.

[0081] Optionally, scroll information of the polar coordinate image is determined based on image artifact information in the polar coordinate image, wherein the scroll information includes a scroll direction and a scroll range; the polar coordinate image is scrolled based on the scroll information, and the operation of obtaining artifact coordinates corresponding to the image artifact information marked in the polar coordinate image and determining an image segmentation line based on the artifact coordinates is returned.

[0082] The image artifact information may include at least one of the morphological information, boundary information, position information, and size information of the image artifact. The scrolling range is used to ensure that after the image is divided into two, one image contains the image artifact information and the other image does not contain the image artifact information. For example, the upper limit of the scrolling range may be a value not greater than half of the height or length of the image.

[0083] Specifically, after the polar coordinate image is scrolled according to the scrolling information, the polar coordinate image can be segmented based on the same image segmentation line to increase the sample processing image by changing the position of the image artifact in the image. It is understandable that more sample processing images can be added by scrolling the polar coordinate image multiple times. The image scrolling step corresponding to each scrolling of the polar coordinate image can be set according to actual needs while satisfying the difference between the two endpoint values ​​of the scrolling range, and is not specifically limited here.

[0084] S220, calculating the model generation loss of the image generator calculated for the model-generated image corresponding to the artifact-free image and the artifact-free image, and calculating the first discriminant loss of the first discriminator for the model-generated image corresponding to the image with artifacts and the second discriminant loss of the second discriminator for the model-generated image corresponding to the image with artifacts.

[0085] Among them, the model generation loss of the image generator is calculated by calculating the model-generated image corresponding to the artifact-free image and the artifact-free image, and the image generator is trained by the model generation loss to keep the artifact-free area as original as possible, so that the model generation loss is as small as possible, so that after the image generator processes the artifact-free image, the generated image is consistent with the input artifact-free image.

[0086] Since one of the purposes of the image generator is to convert an image with artifacts into an image without artifacts, the first discriminator is used to distinguish whether the input image to be distinguished is an artifact image or an artifact-free image. The first discriminant loss of the model generated image corresponding to the image with artifacts is calculated by the first discriminant, and the image generator is adjusted with the help of the first discriminant loss, so that the image generator can have a better image artifact removal effect.

[0087] Optionally, the first discriminator is trained in the following manner:

[0088] Inputting a first training sample image into a first discriminator to obtain a first model discrimination result corresponding to the first training sample image, wherein the first training sample image includes a model-generated image corresponding to the image with artifacts and the image without artifacts;

[0089] The model parameters of the first discriminator are adjusted according to the loss between the first model discrimination result and the first expected discrimination result to optimize the first discriminator.

[0090] Among them, the second discriminator is used to determine whether the input image to be judged is the image data generated by the image generator, by calculating the second discriminant loss of the second discriminant for the model-generated image corresponding to the image with artifacts, and then adjusting the image generator with the help of the second discriminant loss, so that the image generated by the image generator is closer to the real artifact-free image, and at the same time makes the distribution of the generated image close to the distribution of the input image.

[0091] Similarly, the second discriminator is trained as follows:

[0092] Inputting the second training sample image into the second discriminator, and obtaining a second model discrimination result corresponding to the second training sample image, wherein the second training sample image includes the image with artifacts, the image without artifacts, the model-generated image corresponding to the image with artifacts, and the model-generated image corresponding to the image without artifacts;

[0093] The model parameters of the second discriminator are adjusted according to the loss between the second model discrimination result and the second expected discrimination result to optimize the second discriminator.

[0094] S230, adjusting the image generator according to the model generation loss, the first discriminant loss, and the second discriminant loss to obtain an artifact removal model.

[0095] Specifically, the total model loss can be calculated according to the model generation loss, the first discrimination loss and the second discrimination loss, and then the image generator can be adjusted based on the total model loss. The total model loss can be calculated by weighting and summing the model generation loss, the first discrimination loss and the second discrimination loss.

[0096] Specifically, the total model loss for adjusting the image generator can be calculated as follows:

[0097]

[0098] in, is the total model loss of the image generator, is the first discriminant loss of the first discriminator, is the second discriminant loss of the second discriminator, A represents an image with artifacts, B represents an image without artifacts, G represents an image generator, and D B Denotes the first discriminator for determining whether the input image to be discriminated is an artifact-free image, D T The second discriminator for determining whether the input image to be discriminated is the image data generated by the image generator, α, β, γ are used as hyperparameters to adjust the corresponding weights of the total loss of the model, the first discriminant loss, and the second discriminant loss. The values ​​of α, β, and γ can be the same or different, and their specific values ​​can be determined according to actual conditions.

[0099] S240 , obtaining an image to be processed from which image artifact information is to be removed, and converting image coordinates of the image to be processed from Cartesian coordinates to polar coordinates to obtain a target processed image.

[0100] S250: Input the target processed image into a pre-trained artifact removal model to obtain an artifact-removed image corresponding to the target processed image.

[0101] S260 , converting the image coordinates of the de-artifacted image from a polar coordinate system to a Cartesian coordinate system to obtain a target output image.

[0102] The technical solution of this embodiment is that when adjusting the image generator, the model generation loss between the model-generated image corresponding to the artifact-free image and the artifact-free image is used, so that the model can maintain the consistency of image information of the output image and the artifact-free area of ​​the input image; when the first discriminator judges whether the input image to be judged is an artifact-free image, the first discriminant loss of the model-generated image corresponding to the image with artifacts is used, so that the adjusted artifact removal model has better image artifact removal ability; when the second discriminator judges whether the input image to be judged is the image data generated by the image generator, the second discriminant loss of the model-generated image corresponding to the image with artifacts is used, so that the trained artifact removal model can be as close to the real artifact-free image as possible when generating the target generated image after removing the image artifacts, so that the performance of the artifact removal model is more comprehensively optimized, and at the same time, the artifact removal model has better robustness.

[0103] Embodiment 3

[0104] As an optional example of an embodiment of the present invention, a deep adversarial generative model may be trained to output an image after removing the artifacts after inputting the image to be processed containing the image artifacts. The specific operation steps may be:

[0105] 1. Convert the image to be processed from Cartesian coordinates to polar coordinates to obtain the target processed image;

[0106] 2. Locate the image artifact of the target processed image, and then scroll the target processed image in the target direction so that the image artifact is a certain distance away from the edge of the target processed image;

[0107] 3. Input the scrolled target processed image into the artifact removal model to obtain the artifact-free image;

[0108] 4. Perform the operation of resetting the scrolling in step 2 for the de-artifacted image;

[0109] 5. Finally, the de-artifacted image after the reset processing is converted from polar coordinates to Cartesian coordinates to obtain the target output image, that is, the image after the artifacts are removed from the image to be processed.

[0110] It should be noted that the processing of steps 2 and 4 is not mandatory, and whether to execute them can be determined based on actual conditions.

[0111] The following is a detailed introduction to the specific training process of the artifact removal model, which is divided into five parts: model principle, model architecture, loss function setting, data preparation and training method.

[0112] Part I: Model Principles

[0113] This model transforms the convolutional image generation model and the generative adversarial network to train a model to convert images in the artifact domain A to the artifact-free domain B, and maintain the consistency of pixels other than artifacts during the generation process.

[0114] Part II: Model Architecture

[0115] In the model framework of the image generator, by adding a residual module on the basis of convolution, the generated image is clearer and the size limit of the input image is smaller. The discriminator uses a simple 3-layer convolutional network (i.e. PatchGAN) to generate 70×70 blocks, and then discriminates each block.

[0116] Part III: Loss Function Design

[0117] The model training method of the embodiment of the present invention is different from the conventional generative adversarial network. The purpose of this method mainly includes:

[0118] Convert an image with artifacts into an image without artifacts;

[0119] The distribution of generated images is close to the distribution of input images;

[0120] If the artifact-free image is processed, the generated image is consistent with the input image.

[0121] Three losses are defined around the above three purposes:

[0122] (1)

[0123] (2)

[0124] (3)

[0125] Among them, A represents an image with artifacts, B represents an image without artifacts, G represents an image generator, and D B Denotes the first discriminator for determining whether the input image to be discriminated is an artifact-free image, D T A second discriminator is used to discriminate whether the input image to be discriminated is the image data generated by the image generator.

[0126] The loss (1) is used to train the generator G to generate artifact-free data and to train the discriminator D B Distinguish the domain of the input image to be discriminated, that is, whether it is an image with artifacts or an image without artifacts. The loss (2) is used to train the image generator G to generate data as realistic as possible, and to train the discriminator D T To distinguish whether the input image to be judged is real, the loss (3) is used to train the image generator G to keep the artifact-free area as original as possible. The final total loss function is:

[0127]

[0128] Among them, α, β, and γ are used as hyperparameters to adjust the corresponding weights of each sub-loss.

[0129] Part 4: Data Preparation

[0130] The training data requires two sets of images with and without artifacts. The existing data generally contains artifacts, but the artifacts usually only occupy a small arc. Therefore, one image can be cut into two images with and without artifacts. The specific process is as follows:

[0131] 1. Preprocess the original image to remove watermarks and other information that may affect training. Figure 3 As shown;

[0132] 2. Convert the original image processed by step 1 from Cartesian coordinates to polar coordinates, such as Figure 4 As shown;

[0133] 3. Annotate the artifact coordinates of the image artifacts, such as Figure 5 As shown, the artifact coordinates are indicated by “+”;

[0134] 4. If Figure 6 As shown, the annotated original image is scrolled by a random length in the direction of the arrow, but the image artifacts are always kept in the lower half of the image, and the image segmentation line is determined;

[0135] 5. The scrolled original image is cut along the image segmentation line located at half the height of the scrolled original image to obtain two images of the same size, namely, an artifact image containing image artifacts and an artifact-free image without image artifacts, such as Figure 7 As shown, the white dotted line represents the image segmentation line:

[0136] 6. Randomly flip the segmented images with artifacts and / or without artifacts horizontally and / or vertically to increase the data set for the training model, such as Figure 8 shown.

[0137] Part 5: Training Process

[0138] The training process can be divided into two or more training cycles, each of which includes training the image generator and the discriminator D B and the discriminator D T The specific training steps of each network in each cycle include:

[0139] 1. Training of image generator:

[0140] Input an artifact image A containing artifacts and an artifact-free image B containing no artifacts to the image generator, respectively, to obtain two images A* and B*;

[0141] Let the discriminator D B Determine which of A* and B contain artifacts and get the discriminative loss

[0142] Let the discriminator D T Determine which of A*, B*, A, and B are generated images and get the discrimination loss

[0143] Obtain the L1 distance between B* and B and obtain the consistency loss

[0144] Then and Multiply by the corresponding weight and sum to get Then backpropagate to find the gradient of the generator parameters, and then optimize the generator parameters, but do not optimize the discriminator through this total loss.

[0145] 2. Training of the discriminator:

[0146] Let the discriminator D B Determine which of A* and B contain artifacts and get the discriminative loss Then only the discriminator D is optimized B Parameters;

[0147] Let the discriminator D T Determine which of A*, B*, A, and B are generated images and get the discrimination loss Then only the discriminator D is optimized T Parameters.

[0148] Using the above technical solution, the target processed image in the polar coordinate system is input into the artifact removal model to obtain the artifact-free image. Fig. 9 and Fig.10 .like Fig. 9 As shown in the figure, the processed image with artifacts can better remove artifacts and retain the information of the artifact-free area compared with the image before processing (the left picture is the input with artifacts, and the right picture is the output after processing): Fig.10 As shown in Figure 2, there is no obvious difference between the artifact-free image before and after processing (the left image is the artifact-free input, and the right image is the processed output). The comparison between the image to be processed and the de-artifacted image output by the artifact removal model after transforming from polar coordinates to Cartesian coordinates is shown in Figure 2. Fig.11 It can be seen that for the output images of the artifact removal model with artifact input, the artifacts can be removed and the brightness of the artifact backend can be filled. For the input images without artifacts, the model output images are basically consistent with the original images.

[0149] Embodiment 4

[0150] Fig.12 This is a schematic diagram of the structure of an image artifact removal device provided by Embodiment 4 of the present invention. Fig.12 As shown, the device includes: a target processed image acquisition module 1210, a de-artifacted image generation module 1220 and a target image output module 1230.

[0151] Among them, the target processing image acquisition module 1210 is used to obtain the image to be processed with the image artifact information to be removed, and convert the image coordinates of the image to be processed from Cartesian coordinates to polar coordinates to obtain the target processing image; the de-artifacted image generation module 1220 is used to input the target processing image into a pre-trained artifact removal model to obtain a de-artifacted image corresponding to the target processing image, wherein the artifact removal model is obtained by training a pre-established image processing model based on an artifact-free image located in a polar coordinate system and an artifact-containing image containing image artifact information, the image processing model includes an image generator, a first discriminator and a second discriminator, the image generator is used to remove image artifact information to generate an artifact-free image, the first discriminator is used to determine whether the input image to be determined is an artifact-free image, and the second discriminator is used to determine whether the input image to be determined is image data generated by the image generator; the target image output module 1230 is used to convert the image coordinates of the de-artifacted image from a polar coordinate system to Cartesian coordinates to obtain a target output image.

[0152] The technical solution of this embodiment is to obtain the image to be processed with the image artifact information to be removed, convert the image coordinates of the image to be processed from Cartesian coordinates to polar coordinates, obtain the target processed image, and then input the target processed image into the pre-trained artifact removal model to obtain the target generated image without artifacts corresponding to the image to be processed. Since the initial model corresponding to the artifact removal model, that is, the image processing model, includes an image generator, a first discriminator and a second discriminator, it is possible to determine whether the input image to be determined is an artifact-free image through the first discriminator, and determine whether the input image to be determined is image data generated by the image generator through the second discriminator, thereby ensuring the artifact removal effect of the image generator on the image to be processed, solving the technical problems that the related technology cannot effectively remove image artifacts and takes too long, and can simply, quickly and effectively realize the intelligent removal of image artifacts in the image to be processed.

[0153] Optionally, the artifact removal model is obtained by training a model training device. The model training device includes:

[0154] A model-generated image determination module, used for inputting a sample processed image into the image generator to obtain a model-generated image, wherein the sample processed image includes an artifact-free image and an artifact-containing image having image artifact information;

[0155] a model loss calculation module, used to calculate the model generation loss of the model-generated image corresponding to the artifact-free image and the image generator calculated by the artifact-free image, and calculate the first discriminant loss of the first discriminator for the model-generated image corresponding to the image with artifacts and the second discriminant loss of the second discriminator for the model-generated image corresponding to the image with artifacts;

[0156] A model adjustment module is used to adjust the image generator according to the model generation loss, the first discriminant loss and the second discriminant loss to obtain an artifact removal model.

[0157] Optionally, the first discriminator is trained by the following modules of the model training device:

[0158] A first discrimination result output module, used for inputting a first training sample image into a first discriminator to obtain a first model discrimination result corresponding to the first training sample image, wherein the first training sample image includes a model-generated image corresponding to the image with artifacts and the image without artifacts;

[0159] The first discriminant parameter optimization module is used to adjust the model parameters of the first discriminator according to the loss between the first model discrimination result and the first expected discrimination result, so as to optimize the first discriminator.

[0160] Optionally, the second discriminator is trained by the following modules of the model training device:

[0161] A second discrimination result output module, used for inputting a second training sample image into a second discriminator to obtain a second model discrimination result corresponding to the second training sample image, wherein the second training sample image includes the image with artifacts, the image without artifacts, the model-generated image corresponding to the image with artifacts, and the model-generated image corresponding to the image without artifacts;

[0162] The second discriminant parameter optimization module is used to adjust the model parameters of the second discriminator according to the loss between the second model discrimination result and the second expected discrimination result, so as to optimize the second discriminator.

[0163] Optionally, the model training device further includes:

[0164] The sample image acquisition module is used to acquire an original image containing image artifact information, perform image segmentation on the original image to obtain an artifact-free image and an artifact-containing image containing image artifact information, and use the artifact-free image and the artifact-containing image as sample processing images.

[0165] Optionally, the sample image acquisition module includes:

[0166] An image coordinate conversion unit, used for converting the image coordinates of the original image from Cartesian coordinates to polar coordinates to obtain a polar coordinate image;

[0167] an image segmentation line determining unit, configured to obtain artifact coordinates corresponding to the image artifact information marked in the polar coordinate image, and determine an image segmentation line according to the artifact coordinates, wherein the image segmentation line is located in an area of ​​the original image other than an area where the image artifact information is located;

[0168] The sample image obtaining unit is used to divide the polar coordinate image into an artifact-free image and an artifact-containing image containing image artifact information according to the image dividing line.

[0169] Optionally, the sample image acquisition module further includes:

[0170] a scroll information determining unit, configured to determine scroll information of the polar coordinate image according to image artifact information in the polar coordinate image, wherein the scroll information includes a scroll direction and a scroll range;

[0171] The image scrolling unit is used to scroll the polar coordinate image according to the scrolling information, return to execute the operation of obtaining the artifact coordinates corresponding to the image artifact information marked in the polar coordinate image, and determine the image segmentation line according to the artifact coordinates.

[0172] The image artifact removal device provided in the embodiment of the present invention can execute the image artifact removal method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0173] Embodiment 5

[0174] Fig.13A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0175] like Fig.13 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0176] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0177] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 performs the various methods and processes described above, such as the method for removing image artifacts.

[0178] In some embodiments, the method image artifact removal may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method image artifact removal described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method image artifact removal in any other appropriate manner (e.g., by means of firmware).

[0179] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0180] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0181] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0182] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0183] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0184] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0185] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0186] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for removing image artifacts, It is characterized in that include: Acquire an image to be processed whose image artifact information is to be removed, and convert the image coordinates of the image to be processed from Cartesian coordinates to polar coordinates to obtain a target processed image; Inputting the target processed image into a pre-trained artifact removal model to obtain an artifact-removed image corresponding to the target processed image; Converting the image coordinates of the de-artifacted image from a polar coordinate system to a Cartesian coordinate system to obtain a target output image; The artifact removal model is obtained by training a pre-established image processing model based on an artifact-free image and an artifact-containing image in a polar coordinate system, wherein the image processing model includes an image generator, a first discriminator, and a second discriminator. The image generator is used to remove image artifact information to generate an artifact-free image, the first discriminator is used to determine whether an input image to be determined is an artifact-free image, and the second discriminator is used to determine whether the input image to be determined is image data generated by the image generator; The artifact removal model is trained in the following way: Inputting a sample processed image into the image generator to obtain a model generated image, wherein the sample processed image includes an artifact-free image and an artifact-containing image including image artifact information; Calculate the model generation loss of the image generator for the model-generated image corresponding to the artifact-free image and the image generator for the artifact-free image, and calculate the first discriminant loss of the first discriminator for the model-generated image corresponding to the image with artifacts and the second discriminant loss of the second discriminator for the model-generated image corresponding to the image with artifacts; Adjusting the image generator according to the model generation loss, the first discriminant loss, and the second discriminant loss to obtain an artifact removal model; The calculating of the total model loss according to the model generation loss, the first discriminant loss and the second discriminant loss comprises: calculating the total model loss by weighted summing the model generation loss, the first discriminant loss and the second discriminant loss respectively; and calculating the total model loss for adjusting the image generator in the following manner: in, is the total model loss of the image generator, is the first discriminant loss of the first discriminator, is the second discriminant loss of the second discriminator, A represents an image with artifacts, B represents an image without artifacts, G represents an image generator, and D B Denotes the first discriminator for determining whether the input image to be discriminated is an artifact-free image, D T A second discriminator is used to determine whether the input image to be discriminated is image data generated by the image generator. a, β, and γ are used as hyperparameters to adjust the corresponding weights of the first discriminant loss, the second discriminant loss, and the model generation loss.

2. The method according to claim 1, It is characterized in that The first discriminator is trained in the following way: Inputting a first training sample image into a first discriminator to obtain a first model discrimination result corresponding to the first training sample image, wherein the first training sample image includes a model-generated image corresponding to the image with artifacts and the image without artifacts; The model parameters of the first discriminator are adjusted according to the loss between the first model discrimination result and the first expected discrimination result to optimize the first discriminator.

3. The method according to claim 1, It is characterized in that The second discriminator is trained as follows: Inputting the second training sample image into the second discriminator, and obtaining a second model discrimination result corresponding to the second training sample image, wherein the second training sample image includes the image with artifacts, the image without artifacts, the model-generated image corresponding to the image with artifacts, and the model-generated image corresponding to the image without artifacts; The model parameters of the second discriminator are adjusted according to the loss between the second model discrimination result and the second expected discrimination result to optimize the second discriminator.

4. The method according to claim 1, It is characterized in that Also includes: An original image containing image artifact information is acquired, and image segmentation is performed on the original image to obtain an artifact-free image and an artifact-containing image containing image artifact information, and the artifact-free image and the artifact-containing image are used as sample processing images.

5. The method according to claim 4, It is characterized in that The performing image segmentation on the original image to obtain an artifact-free image and an artifact-containing image including image artifact information includes: Converting the image coordinates of the original image from Cartesian coordinates to polar coordinates to obtain a polar coordinate image; Acquire artifact coordinates corresponding to the image artifact information marked in the polar coordinate image, and determine an image segmentation line according to the artifact coordinates, wherein the image segmentation line is located in an area of ​​the original image except an area where the image artifact information is located; The polar coordinate image is divided into an artifact-free image and an artifact-containing image containing image artifact information according to the image division line.

6. The method according to claim 5, It is characterized in that Also includes: Determining scroll information of the polar coordinate image according to image artifact information in the polar coordinate image, wherein the scroll information includes a scroll direction and a scroll range; The polar coordinate image is scrolled according to the scroll information, and the operation of returning to obtain the artifact coordinates corresponding to the image artifact information marked in the polar coordinate image, and determining the image segmentation line according to the artifact coordinates.

7. An image artifact removal device, It is characterized in that include: A target processing image acquisition module is used to acquire a to-be-processed image whose image artifact information is to be removed, and convert the image coordinates of the to-be-processed image from Cartesian coordinates to polar coordinates to obtain a target processing image; An artifact-free image generation module is used to input the target processed image into a pre-trained artifact removal model to obtain an artifact-free image corresponding to the target processed image; A target image output module, used for converting the image coordinates of the de-artifacted image from a polar coordinate system to a Cartesian coordinate system to obtain a target output image; The artifact removal model is obtained by training a pre-established image processing model based on an artifact-free image and an artifact-containing image in a polar coordinate system, wherein the image processing model includes an image generator, a first discriminator, and a second discriminator. The image generator is used to remove image artifact information to generate an artifact-free image, the first discriminator is used to determine whether an input image to be determined is an artifact-free image, and the second discriminator is used to determine whether the input image to be determined is image data generated by the image generator; Wherein, the artifact removal model is obtained by training through a model training device; the model training device comprises: A model-generated image determination module, used for inputting a sample processed image into the image generator to obtain a model-generated image, wherein the sample processed image includes an artifact-free image and an artifact-containing image having image artifact information; a model loss calculation module, used to calculate the model generation loss of the model-generated image corresponding to the artifact-free image and the image generator calculated by the artifact-free image, and calculate the first discriminant loss of the first discriminator for the model-generated image corresponding to the image with artifacts and the second discriminant loss of the second discriminator for the model-generated image corresponding to the image with artifacts; A model adjustment module, used for adjusting the image generator according to the model generation loss, the first discriminant loss and the second discriminant loss to obtain an artifact removal model; The calculating of the total model loss according to the model generation loss, the first discriminant loss and the second discriminant loss comprises: calculating the total model loss by weighted summing the model generation loss, the first discriminant loss and the second discriminant loss respectively; and calculating the total model loss for adjusting the image generator in the following manner: in, is the total model loss of the image generator, is the first discriminant loss of the first discriminator, is the second discriminant loss of the second discriminator, A represents an image with artifacts, B represents an image without artifacts, G represents an image generator, and D B Denotes the first discriminator for determining whether the input image to be discriminated is an artifact-free image, D T A second discriminator is used to determine whether the input image to be discriminated is image data generated by the image generator. α, β, and γ are used as hyperparameters to adjust the corresponding weights of the first discriminant loss, the second discriminant loss, and the model generation loss.

8. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the image artifact removal method according to any one of claims 1 to 6.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the image artifact removal method according to any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • Rapid 3D blood vessel boundary segmenting method and system

    CN107133959A

  • Reconstructed image processing method, device, equipment and storage medium

    CN110378982A

  • Image processing method and device

    CN111667420A

  • Model training method and device based on image processing, equipment and medium

    CN112132172A

  • Method for removing image artifacts

    CN112446873A