Image completion method and device
A completion and image technology, applied in the field of image processing, can solve problems such as poor completion effect, and achieve the effect of speeding up learning, increasing image pixels, and improving resolution
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0099] figure 1 is a flow chart of an image completion method shown according to an exemplary embodiment, such as figure 1 As shown, the image completion method is used in an image completion device, which can be applied to terminals and servers, and the method includes the following steps 101-104:
[0100] In step 101, an n-layer Gaussian pyramid is generated according to the image to be repaired.
[0101] Here, n is a positive integer.
[0102] Obtain the mask (mask) image corresponding to the image to be repaired, mark the part that needs to be repaired as 0, and mark the part that does not need to be repaired as 255, and construct a Gaussian pyramid of the image to be repaired and the corresponding mask image until there is no 0 in the mask. Here, n is a positive integer.
[0103] In step 102, the images of each layer in the n-layer Gaussian pyramid are completed by using a block matching method, and the completed real images of each layer are obtained.
[0104] Start ...
Embodiment 2
[0135] figure 2 is a flow chart of an image completion method shown according to an exemplary embodiment, such as figure 2 As shown, the image completion method is used in an image completion device, and the device can be applied to terminals and servers. The method includes the following steps 201-205:
[0136] In step 201, an n-layer Gaussian pyramid is generated according to the image to be repaired.
[0137] Here, n is a positive integer.
[0138] In step 202, the images of each layer in the n-layer Gaussian pyramid are completed by using a block matching method, and the completed real images of each layer are obtained.
[0139] In step 203, a discriminant network of an adversarial network that satisfies the requirements of the objective function is trained through the nth layer image and the real image of each layer.
[0140] In step 204, a generation network that meets the requirements of the objective function is trained through the nth layer image, the real image ...
Embodiment 3
[0144] image 3 is a flow chart of an image completion method shown according to an exemplary embodiment, such as image 3 As shown, the image completion method is used in an image completion device, and the device can be applied to terminals and servers. The method includes the following steps 301-320:
[0145] In step 301, an n-layer Gaussian pyramid is generated according to the image to be repaired.
[0146] In step 302, randomly upsample from the nth layer image of the n-layer Gaussian pyramid to obtain an nth generated image with the same resolution as the nth layer image.
[0147] In step 303, the jth generated graph is acquired.
[0148] In step 304, the block matching method is used to complement the image at the jth layer of the n-layer Gaussian pyramid to obtain the real image at the jth layer.
[0149] In step 305, the jth layer real map and the jth generated map are input into the improved discriminant network to obtain a first judgment result.
[0150] In ste...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com