Method for sliced inpainting
First Claim
1. A computer-implemented method comprising:
- determining a destination region in a first image including first pixels;
finding a source region in one of;
the first image and a different image, wherein finding the source region includes;
determining a set of destination margin pixels of the destination region;
selecting a candidate source region in one of the first image and the different image;
determining a set of source margin pixels of the candidate source region; and
determining a distance between pixel channel characteristics of the set of destination margin pixels and the set of source margin pixels;
replacing particular pixels of the first pixels of the destination region with copied pixels of the source region;
adapting one or more of the copied pixels in the destination region to provide one or more adapted pixels that visually fit in the destination region, wherein the source region and the destination region have margins, and wherein the adapting is based upon differences between pixel values of the margin of the source region and the margin of the destination region; and
producing a modified image that includes the one or more adapted pixels and pixels of the first pixels that are not the particular pixels replaced.
3 Assignments
0 Petitions
Accused Products
Abstract
A method for replacing image data in a destination region that is divided into sub-pieces along one or more cutting paths, which start and end at two different points on the border, and finding replacement data for the sub-pieces. The cutting paths may be determined as a function of the type of image structured at the start and the end points. The cutting paths may also be determined as a function of the area of the sub-pieces and the lengths of the cutting paths. Optionally, the destination region may be determined by a spot detection algorithm. Further optionally, the spot detection algorithm may comprise calculation of a high pass filter, or detection of areas of luminosity and border-to-volume ratios. A method for moving an image element within an image is also provided.
25 Citations
20 Claims
-
1. A computer-implemented method comprising:
-
determining a destination region in a first image including first pixels; finding a source region in one of;
the first image and a different image, wherein finding the source region includes;determining a set of destination margin pixels of the destination region; selecting a candidate source region in one of the first image and the different image; determining a set of source margin pixels of the candidate source region; and determining a distance between pixel channel characteristics of the set of destination margin pixels and the set of source margin pixels; replacing particular pixels of the first pixels of the destination region with copied pixels of the source region; adapting one or more of the copied pixels in the destination region to provide one or more adapted pixels that visually fit in the destination region, wherein the source region and the destination region have margins, and wherein the adapting is based upon differences between pixel values of the margin of the source region and the margin of the destination region; and producing a modified image that includes the one or more adapted pixels and pixels of the first pixels that are not the particular pixels replaced. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system comprising:
-
a storage device; and at least one processor operative to access the storage device and configured to; determine a destination region in a first image including first pixels; find a source region in one of;
the first image and a different image, wherein finding the source region includes;determining a set of destination margin pixels of the destination region; selecting a plurality of candidate source regions in one of the first image and the different image; detecting sets of source margin pixels, wherein each respective set of source margin pixels is for one of the plurality of candidate source regions; determining a particular candidate source region of the plurality of candidate source regions, wherein the particular candidate source region is associated with a determined set of source margin pixels of the sets of source margin pixels that has a smallest distance between its pixel vectors and the pixel vectors of the set of destination margin pixels; and selecting the particular candidate source region as the source region; replace particular pixels of the first pixels of the destination region with copied pixels of the source region; and adapt one or more of the copied pixels in the destination region to provide one or more adapted pixels that visually fit in the destination region, wherein the source region and the destination region have margins, and wherein the adaptation is based upon differences between pixel values of the margin of the source region and the margin of the destination region; and producing a modified image that includes the one or more adapted pixels and pixels of the first pixels that are not the particular pixels replaced. - View Dependent Claims (12)
-
-
13. A computer-implemented method comprising:
-
dividing a destination region of a first image into a plurality of sub-pieces along one or more cutting paths, wherein the one or more cutting paths each start and end at different points on a border of the destination region; finding a respective set of replacement image data corresponding to one or more sub-pieces of the plurality of sub-pieces, wherein each respective set of replacement image data is obtained from a respective source region of one of;
the first image and a different image;adapting pixels of each respective set of replacement image data to visually fit the corresponding sub-piece of the plurality of sub-pieces of the destination region; and replacing each of the one or more sub-pieces in the first image with the respective corresponding set of replacement image data to produce a modified image. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
Specification