Image inpainting method and electronic device

US12283029B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12283029-B2
Application numberUS-202117907849-A
CountryUS
Kind codeB2
Filing dateMar 12, 2021
Priority dateMar 12, 2020
Publication dateApr 22, 2025
Grant dateApr 22, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

An image inpainting method includes: acquiring an image to be inpainted based on depth information and texture information of a reference image, the image to be inpainted including at least one region to be inpainted; determining at least one reference block matching the at least one region to be inpainted respectively in the reference image; and inpainting the at least one region to be inpainted by using the at least one reference block to obtain a composite image.

First claim

Opening claim text (preview).

What is claimed is: 1. An image inpainting method, comprising: acquiring an image to be inpainted based on both depth information and texture information of a reference image, the image to be inpainted including at least one region to be inpainted; wherein each region to be inpainted includes at least one pixel point to be inpainted with a pixel value of zero; determining at least one reference block matching the at least one region to be inpainted respectively in the reference image; and inpainting the at least one region to be inpainted according to the at least one reference block respectively to acquire a composite image; wherein determining the at least one reference block matching the at least one region to be inpainted respectively in the reference image, includes: determining priorities of all pixel points to be inpainted in a region to be inpainted; acquiring a target pixel point with a highest priority in all the pixel points to be inpainted; acquiring a first preset region in the region to be inpainted with the target pixel point as a center; and matching the first preset region with regions of the reference image, and using a region of the reference image that matches the first preset region as a reference block; wherein matching the first preset region with the regions of the reference image, and using the region of the reference image that matches the first preset region as the reference block, includes: acquiring a first reference pixel point corresponding to the target pixel point in the reference image; acquiring a second preset region of the reference image with the first reference pixel point as a center; determining a first offset matrix according to the first preset region and the second preset region; acquiring, for all second reference pixel points in the reference image, third preset regions of the reference image each with a second reference pixel point as a center; the second reference pixel point being any pixel point in the reference image; determining a second offset matrix according to the first preset region and each third preset region; determining an offset factor according to the first offset matrix and the second offset matrix; acquiring a grayscale similarity factor between the second reference pixel point and the target pixel point; determining a similarity between the first preset region and the third preset region according to the offset factor and the grayscale similarity factor; and among the third preset regions determined according to all the second reference pixel points, using a preset region with a smallest similarity as the reference block. 2. The method according to claim 1 , wherein determining the priorities of all the pixel points to be inpainted in the region to be inpainted, includes: acquiring, for each pixel point to be inpainted in the region to be inpainted, a structure factor of the pixel point to be inpainted according to both a unit normal vector and a gradient value of the pixel point to be inpainted; determining a direction factor of the pixel point to be inpainted according to the pixel point to be inpainted and neighborhood pixel points adjacent to the pixel point to be inpainted; and determining a priority of the pixel point to be inpainted according to the structure factor and the direction factor. 3. The method according to claim 1 , wherein after acquiring the at least one region to be inpainted of the image to be inpainted, and before determining the priorities of all the pixel points to be inpainted in the region to be inpainted, the method further comprises: acquiring a plurality of pixel points in the region to be inpainted; acquiring, for each pixel point of the plurality of pixel points, neighborhood pixel points of each pixel point; if a number of pixel points not belonging to the region to be inpainted in the neighborhood pixel points of each pixel point is greater than a preset threshold, inpainting the pixel point according to the pixel points not belonging to the region to be inpainted; and determining at least one pixel point not inpainted in the plurality of pixel points as the at least one pixel point to be inpainted. 4. A non-transitory computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements steps in the image inpainting method according to claim 1 . 5. The method according to claim 1 , wherein acquiring the image to be inpainted based on both the depth information and the texture information of the reference image, includes: synthesizing the image to be inpainted, based on a depth-image-based rendering (DIBR) algorithm, according to both the depth information and the texture information of the reference image. 6. The method according to claim 1 , wherein determining the priorities of all the pixel points to be inpainted in the region to be inpainted, includes: setting priorities of a part of pixel points to be inpainted at edge positions of the region to be inpainted to be low; and setting priorities of another part of pixel points to be inpainted at center positions of the region to be inpainted to be high. 7. The method according to claim 1 , wherein the at least one region to be inpainted includes a plurality of regions to be inpainted, and the at least one reference block includes a plurality of reference blocks; inpainting the at least one region to be inpainted according to the at least one reference block respectively to acquire the composite image, includes: inpainting the plurality of regions to be inpainted sequentially according to the plurality of reference blocks respectively to acquire the composite image; or inpainting the plurality of regions to be inpainted in parallel according to the plurality of reference blocks respectively to acquire the composite image. 8. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and run on the processor, wherein the computer program, when executed by the processor, implements: acquiring an image to be inpainted based on both depth information and texture information of a reference image, the image to be inpainted including at least one region to be inpainted; wherein each region to be inpainted includes at least one pixel point to be inpainted with a pixel value of zero; determining at least one reference block matching the at least one region to be inpainted respectively in the reference image; and inpainting the at least one region to be inpainted according to the at least one reference block respectively to acquire a composite image; wherein the computer program, when executed by the processor, further implements; determining priorities of all pixel points to be inpainted in a region to be inpainted; acquiring a target pixel point with a highest priority in all the pixel points to be inpainted; acquiring a first preset region in the region to be inpainted with the target pixel point as a center; and matching the first preset region with regions of the reference image, and using a region of the reference image that matches the first preset region as a reference block; wherein the computer program, when executed by the processor, further implements; acquiring a first reference pixel point corresponding to the target pixel point in the reference image; acquiring a second preset region of the reference image with the first reference pixel point as a center; determining a first offset matrix according to the first preset region and the second preset region; acquiring, for all second reference pixel points in the reference image, third preset regions of the reference image each with a second reference pixel point as a center; the second reference pixel points

Assignees

Inventors

Classifications

  • Analysis of texture (depth or shape recovery from texture G06T7/529) · CPC title

  • G06V10/761Primary

    Proximity, similarity or dissimilarity measures · CPC title

  • Region-based segmentation · CPC title

  • Depth or shape recovery · CPC title

  • G06T5/77Primary

    Retouching; Inpainting; Scratch removal · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12283029B2 cover?
An image inpainting method includes: acquiring an image to be inpainted based on depth information and texture information of a reference image, the image to be inpainted including at least one region to be inpainted; determining at least one reference block matching the at least one region to be inpainted respectively in the reference image; and inpainting the at least one region to be inpaint…
Who is the assignee on this patent?
Boe Technology Group Co Ltd, Univ Beijing
What technology area does this patent fall under?
Primary CPC classification G06V10/761. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Apr 22 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).