CN104966279A - Image synthesis restoration method based on local structure features - Google Patents
Image synthesis restoration method based on local structure features Download PDFInfo
- Publication number
- CN104966279A CN104966279A CN201510330001.7A CN201510330001A CN104966279A CN 104966279 A CN104966279 A CN 104966279A CN 201510330001 A CN201510330001 A CN 201510330001A CN 104966279 A CN104966279 A CN 104966279A
- Authority
- CN
- China
- Prior art keywords
- pixel
- formwork
- repaired
- maximum
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Medicines Containing Antibodies Or Antigens For Use As Internal Diagnostic Agents (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
The present invention relates to an image synthesis restoration method based on local structure features, comprising the following steps: inputting an image to be restored; initializing confidence coefficients of all pixel points in the image to be restored; selecting a template block of each pixel point by respectively taking each pixel point on a damaged boundary of the image to be restored as the center; calculating the priority of the template block where each pixel point on the damaged boundary of the image to be restored locates, and performing descending sort; searching an area which has the highest similarity with the template block having the greatest priority from an undamaged area in the image to be restored to serve as an optimal matching block; copying pixel values in the optimal matching block to the template block; and updating the confidence coefficients and returning to execute corresponding steps until the image to be restored is completely restored. The image synthesis restoration method based on local structure features provided in the present invention can improve image restoration accuracy for a damaged image with a complicated texture structure. The present invention also relates to an image synthesis restoration system based on local structure features.
Description
Technical field
The present invention relates to image processing field, be specifically related to a kind of Images uniting restorative procedure based on partial structurtes feature.
Background technology
Image repair is one of main contents of image procossing, mainly comprise the reparation of structural images and the reparation of texture image, restorative procedure is roughly divided into two classes: a class is the image repair method based on partial differential equation, and an other class is the image repair method based on textures synthesis.
Based in the image repair method of textures synthesis, two classes can be divided into again: a kind of be based on decompose method, another is the textures synthesis restorative procedure based on sample, and based in the textures synthesis restorative procedure of sample, it represents algorithm is the Criminisi algorithm driven based on isophote, Criminisi algorithm is the image block first determining to obtain at first reparation by priority formula, then searches for optimal objective block to fill defect area according to color-match criterion in global scope.But along with the carrying out of repair process, the data item of priority level initializing can decline rapidly, and degree of confidence item then starts to increase, and makes the calculating of priority unreliable, the fill order led to errors; And the global search mode adopted, time complexity can be higher; In addition, matching criterior just adopts color distance to determine blocks and optimal matching blocks, finally can produce multiple object block, and be the modes adopting random selecting object block for these multiple object block Criminisi algorithms, so just increase the erroneous matching rate of image.Finally show that the defect on image is exactly picture structure fidelity defect, image repair is of poor quality.
Summary of the invention
The invention provides a kind of Images uniting restorative procedure based on partial structurtes feature, image repair accuracy rate can be improved to the breakage image of texture structure more complicated.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of Images uniting restorative procedure based on partial structurtes feature, comprises the following steps:
Step 1, input an image to be repaired, be designated as u (x, y), x, y are respectively the coordinate of image to be repaired on x, y direction;
Step 2, to the degree of confidence initialization of all pixels in described image to be repaired; Specific as follows:
In formula, p' is the pixel in described image to be repaired; The degree of confidence that C (p') is pixel p'; Ω is the affected area in described image to be repaired, and Φ is the non-affected area in described image to be repaired;
for getting arbitrary value;
refer to that the affected area in described image to be repaired gets any pixel;
refer to that the non-affected area in described image to be repaired gets any pixel;
Step 3, chooses the formwork of each pixel described respectively in described image damaged boundary to be repaired centered by each pixel;
Step 4, according to the size of the damaged degree priority of each pixel place formwork in image damaged boundary to be repaired described in following formulae discovery, and by damaged degree priority according to descending sort from big to small;
P(p)=a
1C(p)+a
2D(p)+a
3H(p);
Wherein, p is the pixel of described formwork center; The damaged degree priority that P (p) is pixel p; a
1, a
2, a
3for weight, and a
1, a
2, a
3and be 1;
H (p)=Kh+exp (-h); K is controling parameter, and value is 0.8; Exp (-h)=e
-h, e
-hfor taking e as the exponential function of the truth of a matter, e=2.71828; H is local metric function, h=| λ
1-λ
2|
2, λ
1and λ
2be respectively the First Eigenvalue and the Second Eigenvalue of described formwork structure tensor expression formula, expression formula is:
Wherein, j
11, j
12, j
22obtained by its structure tensor expression formula to be repaired, described its structure tensor expression formula to be repaired is:
refer to G
ρwith
ask convolution algorithm;
refer to G
ρwith
ask convolution algorithm;
refer to G
ρwith
ask convolution algorithm;
C (p) is the degree of confidence of described formwork center pixel p; D (p) is the data item of described formwork center pixel p;
In formula, ψ
pfor the formwork that damaged boundary is put centered by pixel p, Φ is the non-affected area in described image to be repaired, ψ
pthe common factor of the non-affected area in ∩ Φ finger print plate and described image to be repaired,
for the pixel in the common factor of the non-affected area in described formwork and described image to be repaired, i.e. the pixel of non-affected area in described formwork,
for pixel
degree of confidence, | Ψ
p| be the area of formwork, the quantity of pixel in finger print plate;
for the direction of the isophote of pixel p, i.e. the vertical direction of gradient, n
pfor the unit direction vector of pixel p, α is normalized factor, and in gray level image, value is 255;
Step 5, finds the formwork maximum with described damaged degree priority in the non-affected area of described image to be repaired
the region that similarity is the highest, as blocks and optimal matching blocks;
Step 6, copies to the formwork that described damaged degree priority is maximum by the pixel value in described blocks and optimal matching blocks
in;
Step 7, upgrades the maximum formwork of described damaged degree priority according to following formula
damaged area in the degree of confidence of all pixels, and return step 4, until image to be repaired is repaired completely;
In formula, p
mfor the pixel of the center of the maximum formwork of described damaged degree priority; C (p
m) be pixel p
mdegree of confidence,
for the formwork that described damaged degree priority is maximum, Ω is the affected area in described image to be repaired,
refer to the formwork that described damaged degree priority is maximum
with the common factor of affected area Ω in described image to be repaired, the affected area in the formwork that namely described damaged degree priority is maximum;
refer to that in the formwork that described damaged degree priority is maximum, get any pixel in affected area is
for the pixel in damaged area in the formwork that described damaged degree priority is maximum,
for pixel in damaged area in the formwork that described damaged degree priority is maximum
degree of confidence.
The invention has the beneficial effects as follows: by introducing tensor theories in priority level initializing process, due to the effective Description Image partial structurtes information of structure tensor energy, relation between its eigenwert can the different subregion of token image, make it possible to according to its structure tensor and eigenwert thereof, control image repair priority, thus avoid in prior art because degree of confidence item is larger, and data item less time, the image block causing Given information a lot of can not get preferential reparation, produces mis repair.
On the basis of technique scheme, the present invention can also do following improvement:
Further, described step 5 comprises the following steps:
Step 5.1, travel through the sample block of all non-affected area in described image to be repaired, the size of the formwork that described sample block is maximum with described damaged degree priority is identical, and in judging the formwork that described damaged degree priority is maximum in all pixel value sums and described sample block all pixel value sums whether meet following relational expression:
(1-δ)·sum(Ψ
p”)≤sum(Ψ
q')≤(1+δ)·sum(Ψ
p”);
In formula, p " be the known pixel of pixel in the maximum formwork of described damaged degree priority, Ψ
p "for the region that pixel in the formwork that described damaged degree priority is maximum is known; Sum (Ψ
p ") refer to that in the formwork maximum to described damaged degree priority, all pixel point values of pixel known portions are sued for peace; Q' is the corresponding pixel of pixel that in formwork maximum with described damaged degree priority in described sample block, pixel is known, Ψ
q'for the region that the region that pixel in formwork maximum with described damaged degree priority in described sample block is known is corresponding; Sum (Ψ
q') refer to that the pixel point value corresponding to known pixels point in formwork maximum with described damaged degree priority in described sample block is sued for peace; δ value is [0,1];
Step 5.2, after all pixel value sums meet the relational expression in step 5.1 in pixel value sums all in described sample block and the maximum formwork of the maximum described damaged degree priority of described damaged degree priority, carries out color-match;
Step 5.3, using sample block the highest for color-match degree as blocks and optimal matching blocks.
The beneficial effect of above-mentioned further scheme is adopted to be added to judge to be matched piece of known region pixel and area pixel value sum Satisfying Matching Conditions this process corresponding with object block before color-match, avoid in prior art and search for blocks and optimal matching blocks in global scope, increase time complexity, cause remediation efficiency this problem low.
Further, color-match is carried out according to following formula in described step 5.2:
In formula,
refer to ask for make
get the ψ of minimum value
q; λ
1for the First Eigenvalue of the maximum formwork structure tensor expression formula of described damaged degree priority; λ
2for the Second Eigenvalue of the maximum formwork structure tensor expression formula of described damaged degree priority; λ '
1for the First Eigenvalue of sample block structure tensor expression formula; λ '
2the Second Eigenvalue of sample block structure tensor expression formula; Φ is non-affected area in described image to be repaired;
for the formwork that described damaged degree priority is maximum; Q is the pixel of the formwork center that in sample block, corresponding described damaged degree priority is maximum; ψ
qfor the sample block put centered by pixel q; N is the quantity of all pixels in described formwork;
for the sample block that color-match degree in non-affected area is the highest;
the formwork maximum for described damaged degree priority and the color sum of squares of deviations of sample block, expression formula is:
In formula, I
rfor the gray-scale value of known pixels point in R passage in formwork; I
r' be the gray-scale value of known pixels point in R passage in sample block; I
gfor the gray-scale value of known pixels point in G passage in formwork; I
g' be the gray-scale value of known pixels point in G passage in sample block; I
bfor the gray-scale value of known pixels point in channel B in formwork; I
b' be the gray-scale value of known pixels point in channel B in sample block.
The beneficial effect of above-mentioned further scheme is adopted to be by the eigenwert of structure tensor is introduced matching criterior, to avoid in prior art random selecting object matching block in the middle of multiple coupling object block, cause choosing improper, and affect the effect of later image reparation, this color-match criterion makes found object block similarity higher, can reduce erroneous matching rate.
Further, described weight a
1, a
2, a
3can arrange according to picture structure, when image texture characteristic to be repaired enriches, a
1account for the largest percentage; When T-shaped partial structurtes abundant information such as turnings in image to be repaired, a
2account for the largest percentage; When linear structure is enriched, a
3account for the largest percentage.
Adopt the beneficial effect of above-mentioned further scheme to be proportion by suitably adjusting weight for the image to be repaired of different characteristics, can repairing quality be improved.
Further, described when image texture characteristic to be repaired enriches, a
1: a
2: a
3=3:1:1; In described image to be repaired during the T-shaped partial structurtes abundant information such as turning, a
1: a
2: a
3=1:3:1; Described when linear structure is enriched, a
1: a
2: a
3=1:1:3.
Adopt the beneficial effect of above-mentioned further scheme to be proportion by arranging weight for the image to be repaired of different characteristics, can repairing quality be improved.
Present invention also offers a kind of Images uniting repair system based on partial structurtes feature, comprising:
Load module, for inputting an image to be repaired, is designated as u (x, y), and x, y are respectively the coordinate of image to be repaired on x, y direction;
Initialization module, to the degree of confidence initialization of all pixels in described image to be repaired; Specific as follows:
In formula, p' is the pixel in described image to be repaired; The degree of confidence that C (p') is pixel p'; Ω is the affected area in described image to be repaired, and Φ is the non-affected area in described image to be repaired;
for getting arbitrary value;
refer to that the affected area in described image to be repaired gets any pixel;
refer to that the non-affected area in described image to be repaired gets any pixel;
Formwork chooses module, for choosing the formwork of each pixel described respectively in described image damaged boundary to be repaired centered by each pixel;
Computing module, for for the size according to the damaged degree priority of each pixel place formwork in image damaged boundary to be repaired described in following formulae discovery, and by damaged degree priority according to descending sort from big to small;
P(p)=a
1C(p)+a
2D(p)+a
3H(p);
In formula, p is the pixel of described formwork center; The damaged degree priority that P (p) is pixel p; a
1, a
2, a
3for weight, and a
1, a
2, a
3and be 1;
H (p)=Kh+exp (-h); K is controling parameter, and value is 0.8; Exp (-h)=e
-h, e
-hfor taking e as the exponential function of the truth of a matter, e=2.71828; H is local metric function, h=| λ
1-λ
2|
2, λ
1and λ
2be respectively the First Eigenvalue and the Second Eigenvalue of described formwork structure tensor expression formula, expression formula is:
Wherein, j
11, j
12, j
22obtained by its structure tensor expression formula to be repaired, described its structure tensor expression formula to be repaired is:
ask convolution algorithm;
refer to G
ρwith
ask convolution;
refer to G
ρwith
ask convolution algorithm;
C (p) is the degree of confidence of described formwork center pixel p; D (p) is the data item of described formwork center pixel p;
In formula, ψ
pfor the formwork that damaged boundary is put centered by pixel p, Φ is the non-affected area in described image to be repaired, ψ
pthe common factor of the non-affected area in ∩ Φ finger print plate and described image to be repaired,
for the pixel in the common factor of the affected area in described formwork and described image to be repaired, i.e. the pixel of non-affected area in described formwork,
for pixel
degree of confidence, | Ψ
p| be the area of formwork, the quantity of pixel in finger print plate;
for the direction of the isophote of pixel p, i.e. the vertical direction of gradient, n
pfor the unit direction vector of pixel p, α is normalized factor, and in gray level image, value is 255;
Matching module, for finding the highest region of the formwork similarity maximum with described damaged degree priority in the non-affected area of described image to be repaired, as blocks and optimal matching blocks;
Replication module, for copying in the maximum formwork of described damaged degree priority by the pixel value in described blocks and optimal matching blocks;
Update module, for upgrade the maximum formwork of described damaged degree priority according to following formula damaged area in the degree of confidence of all pixels, and return computing module, until image to be repaired is repaired completely;
In formula, p
mfor the pixel of the center of the maximum formwork of described damaged degree priority; C (p
m) be pixel p
mdegree of confidence,
for the formwork that described damaged degree priority is maximum, Ω is the affected area in described image to be repaired,
refer to the formwork that described damaged degree priority is maximum
with the common factor of affected area Ω in described image to be repaired, the affected area in the formwork that namely described damaged degree priority is maximum;
refer to that in the formwork that described damaged degree priority is maximum, get any pixel in affected area is
for the pixel in damaged area in the formwork that described damaged degree priority is maximum,
for pixel in damaged area in the formwork that described damaged degree priority is maximum
degree of confidence.
The invention has the beneficial effects as follows: by introducing tensor theories in priority level initializing process, due to the effective Description Image partial structurtes information of structure tensor energy, relation between its eigenwert can the different subregion of token image, make it possible to according to its structure tensor and eigenwert thereof, control image repair priority, thus avoid in prior art because degree of confidence item is larger, and data item less time, the image block causing Given information a lot of can not get preferential reparation, produces mis repair.
On the basis of technique scheme, the present invention can also do following improvement:
Further, described matching module comprises:
Judging unit, for traveling through the sample block of all non-affected area in described image to be repaired, the size of the formwork that described sample block is maximum with described damaged degree priority is identical, and in judging the formwork that described damaged degree priority is maximum in all pixel value sums and described sample block all pixel value sums whether meet following relational expression:
(1-δ)·sum(Ψ
p”)≤sum(Ψ
q')≤(1+δ)·sum(Ψ
p”);
In formula, p " be the known pixel of pixel in the maximum formwork of described damaged degree priority, Ψ
p "for the region that pixel in the formwork that described damaged degree priority is maximum is known; Sum (Ψ
p ") refer to that in the formwork maximum to described damaged degree priority, all pixel point values of pixel known portions are sued for peace; Q' is the corresponding pixel of pixel that in formwork maximum with described damaged degree priority in described sample block, pixel is known, Ψ
q'for the region that the region that pixel in formwork maximum with described damaged degree priority in described sample block is known is corresponding; Sum (Ψ
q') refer to that the pixel point value corresponding to known pixels point in formwork maximum with described damaged degree priority in described sample block is sued for peace; δ value is [0,1];
Color-match unit, for after all pixel value sums meet the relational expression in judging unit in pixel value sums all in described sample block and the maximum formwork of the maximum described damaged degree priority of described damaged degree priority, carries out color-match;
Optimum Matching unit, for using sample block the highest for color-match degree as blocks and optimal matching blocks.
The beneficial effect of above-mentioned further scheme is adopted to be added to judge to be matched piece of known region pixel and area pixel value sum Satisfying Matching Conditions this process corresponding with object block before color-match, avoid in prior art and search for blocks and optimal matching blocks in global scope, increase time complexity, cause remediation efficiency this problem low.
Further, described color-match unit carries out color-match according to following formula:
In formula,
refer to ask for make
get the ψ of minimum value
q; λ
1for the First Eigenvalue of the maximum formwork structure tensor expression formula of described damaged degree priority; λ
2for the Second Eigenvalue of the maximum formwork structure tensor expression formula of described damaged degree priority; λ '
1for the First Eigenvalue of sample block structure tensor expression formula; λ '
2the Second Eigenvalue of sample block structure tensor expression formula; Φ is non-affected area in described image to be repaired;
for the formwork that described damaged degree priority is maximum; Q is the pixel of the formwork center that in sample block, corresponding described damaged degree priority is maximum; ψ
qfor the sample block put centered by pixel q; N is the quantity of all pixels in described formwork;
for the sample block that color-match degree in non-affected area is the highest;
the formwork maximum for described damaged degree priority and the color sum of squares of deviations of sample block, expression formula is:
In formula, I
rfor the gray-scale value of known pixels point in R passage in formwork; I
r' be the gray-scale value of known pixels point in R passage in sample block; I
gfor the gray-scale value of known pixels point in G passage in formwork; I
g' be the gray-scale value of known pixels point in G passage in sample block; I
bfor the gray-scale value of known pixels point in channel B in formwork; I
b' be the gray-scale value of known pixels point in channel B in sample block.
The beneficial effect of above-mentioned further scheme is adopted to be by the eigenwert of structure tensor is introduced matching criterior, to avoid in prior art random selecting object matching block in the middle of multiple coupling object block, cause choosing improper, and affect the effect of later image reparation, this color-match criterion makes found object block similarity higher, can reduce erroneous matching rate.
Further, described computing module comprises setting unit, for arranging weight a according to picture structure
1, a
2, a
3, when image texture characteristic to be repaired enriches, a
1account for the largest percentage; When T-shaped partial structurtes abundant information such as turnings in image to be repaired, a
2account for the largest percentage; When linear structure is enriched, a
3account for the largest percentage.
Adopt the beneficial effect of above-mentioned further scheme to be proportion by suitably adjusting weight for the image to be repaired of different characteristics, can repairing quality be improved.
Further, described setting unit comprises and arranges subelement, for when image texture characteristic to be repaired enriches, and a
1: a
2: a
3=3:1:1; In described image to be repaired during the T-shaped partial structurtes abundant information of corner, a
1: a
2: a
3=1:3:1; Described when linear structure is enriched, a
1: a
2: a
3=1:1:3.
Adopt the beneficial effect of above-mentioned further scheme to be proportion by arranging weight for the image to be repaired of different characteristics, can repairing quality be improved.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of Images uniting restorative procedure based on partial structurtes feature of the present invention;
Fig. 2 is the Comparative result figure utilizing existing method and the inventive method to repair first group of image during the present invention tests;
Fig. 3 is the Comparative result figure utilizing existing method and the inventive method to repair second group of image during the present invention tests;
Fig. 4 is the Comparative result figure utilizing existing method and the inventive method to repair the 3rd group of image during the present invention tests;
Fig. 5 is the Comparative result figure utilizing existing method and the inventive method to repair the 4th group of image during the present invention tests;
Fig. 6 is the Comparative result figure utilizing existing method and the inventive method to repair the 5th group of image during the present invention tests.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As shown in Figure 1, a kind of Images uniting restorative procedure based on partial structurtes feature of the present invention, comprises the following steps:
Step 1, input an image to be repaired, be designated as u (x, y), x, y are respectively the coordinate of image to be repaired on x, y direction;
To the degree of confidence initialization of all pixels in described image to be repaired; Specific as follows:
In formula, p' is the pixel in described image to be repaired; The degree of confidence that C (p') is pixel p'; Ω is the affected area in described image to be repaired, and Φ is the non-affected area in described image to be repaired;
for getting arbitrary value;
refer to that the affected area in described image to be repaired gets any pixel;
refer to that the non-affected area in described image to be repaired gets any pixel;
Step 3, chooses the formwork of each pixel described respectively in described image damaged boundary to be repaired centered by each pixel;
Step 4, according to the size of the damaged degree priority of each pixel place formwork in image damaged boundary to be repaired described in following formulae discovery, and by damaged degree priority according to descending sort from big to small;
P(p)=a
1C(p)+a
2D(p)+a
3H(p);
Wherein, p is the pixel of described formwork center; The damaged degree priority that P (p) is pixel p; a
1, a
2, a
3for weight, and a
1, a
2, a
3and be 1;
H (p)=Kh+exp (-h); K is controling parameter, and value is 0.8; Exp (-h)=e
-h, e
-hfor taking e as the exponential function of the truth of a matter, e=2.71828; H is local metric function, h=| λ
1-λ
2|
2, λ
1and λ
2be respectively the First Eigenvalue and the Second Eigenvalue of described formwork structure tensor expression formula, expression formula is:
Wherein, j
11, j
12, j
22obtained by its structure tensor expression formula to be repaired, described its structure tensor expression formula to be repaired is:
refer to G
ρwith ask
convolution algorithm;
refer to G
ρwith
ask convolution algorithm;
refer to G
ρwith
ask convolution algorithm;
C (p) is the degree of confidence of described formwork center pixel p; D (p) is the data item of described formwork center pixel p;
In formula, ψ
pfor the formwork that damaged boundary is put centered by pixel p, Φ is the non-affected area in described image to be repaired, ψ
pthe common factor of the non-affected area in ∩ Φ finger print plate and described image to be repaired,
for the pixel in the common factor of the non-affected area in described formwork and described image to be repaired, i.e. the pixel of non-affected area in described formwork,
for pixel
degree of confidence, | Ψ
p| be the area of formwork, the quantity of pixel in finger print plate;
for the direction of the isophote of pixel p, i.e. the vertical direction of gradient, n
pfor the unit direction vector of pixel p, α is normalized factor, and in gray level image, value is 255;
In H (p), add exp (-h), have following two advantages: when two eigenwert differences are little, when namely image is tending towards flat site, ensure the very little and non-vanishing energy again of H (p) change; When difference between two eigenwerts is increasing, its effect is but more and more less, ensures the linear followability of H (p), with the change of accurate description picture structure;
H (p) increases the impact of structural factor in repair process on the one hand, ensure that the preferential propagation of picture structure; Introduce on the other hand structure tensor make the description of picture structure and judge more accurate, thus ensure that repairing effect.
Step 5, finds the formwork maximum with described damaged degree priority in the non-affected area of described image to be repaired
the region that similarity is the highest, as blocks and optimal matching blocks;
Step 5 comprises the following steps:
Step 5.1, travel through the sample block of all non-affected area in described image to be repaired, the size of the formwork that described sample block is maximum with described damaged degree priority is identical, and in judging the formwork that described damaged degree priority is maximum in all pixel value sums and described sample block all pixel value sums whether meet following relational expression:
(1-δ)·sum(Ψ
p”)≤sum(Ψ
q')≤(1+δ)·sum(Ψ
p”);
In formula, p " be the known pixel of pixel in the maximum formwork of described damaged degree priority, Ψ
p "for the region that pixel in the formwork that described damaged degree priority is maximum is known; Sum (Ψ
p ") refer to that in the formwork maximum to described damaged degree priority, all pixel point values of pixel known portions are sued for peace; Q' is the corresponding pixel of pixel that in formwork maximum with described damaged degree priority in described sample block, pixel is known, Ψ
q'for the region that the region that pixel in formwork maximum with described damaged degree priority in described sample block is known is corresponding; Sum (Ψ
q') refer to that the pixel point value corresponding to known pixels point in formwork maximum with described damaged degree priority in described sample block is sued for peace; δ value is [0,1];
Step 5.2, after all pixel value sums meet the relational expression in step 5.1 in pixel value sums all in described sample block and the maximum formwork of the maximum described damaged degree priority of described damaged degree priority, carries out color-match;
Color-match is carried out according to following formula in step 5.2:
In formula,
refer to ask for make
get the ψ of minimum value
q; λ
1for the First Eigenvalue of the maximum formwork structure tensor expression formula of described damaged degree priority; λ
2for the Second Eigenvalue of the maximum formwork structure tensor expression formula of described damaged degree priority; λ '
1for the First Eigenvalue of sample block structure tensor expression formula; λ '
2the Second Eigenvalue of sample block structure tensor expression formula; Φ is non-affected area in described image to be repaired;
for the formwork that described damaged degree priority is maximum; Q is the pixel of the formwork center that in sample block, corresponding described damaged degree priority is maximum; ψ
qfor the sample block put centered by pixel q; N is the quantity of all pixels in described formwork;
for the sample block that color-match degree in non-affected area is the highest;
the formwork maximum for described damaged degree priority and the color sum of squares of deviations of sample block, expression formula is:
In formula, I
rfor the gray-scale value of known pixels point in R passage in formwork; I
r' be the gray-scale value of known pixels point in R passage in sample block; I
gfor the gray-scale value of known pixels point in G passage in formwork; I
g' be the gray-scale value of known pixels point in G passage in sample block; I
bfor the gray-scale value of known pixels point in channel B in formwork; I
b' be the gray-scale value of known pixels point in channel B in sample block.
Step 5.3, using sample block the highest for color-match degree as blocks and optimal matching blocks;
Step 6, copies to the formwork that described damaged degree priority is maximum by the pixel value in described blocks and optimal matching blocks
in;
Step 7, upgrades the maximum formwork of described damaged degree priority according to following formula
damaged area in the degree of confidence of all pixels, and return step 4, until image to be repaired is repaired completely;
In formula, p
mfor the pixel of the center of the maximum formwork of described damaged degree priority; C (p
m) be pixel p
mdegree of confidence,
for the formwork that described damaged degree priority is maximum, Ω is the affected area in described image to be repaired,
refer to the formwork that described damaged degree priority is maximum
with the common factor of affected area Ω in described image to be repaired, the affected area in the formwork that namely described damaged degree priority is maximum;
refer to that in the formwork that described damaged degree priority is maximum, get any pixel in affected area is
for the pixel in damaged area in the formwork that described damaged degree priority is maximum,
for pixel in damaged area in the formwork that described damaged degree priority is maximum
degree of confidence.
Present invention also offers a kind of Images uniting repair system based on partial structurtes feature, comprising:
Load module, for inputting an image to be repaired, is designated as u (x, y), and x, y are respectively the coordinate of image to be repaired on x, y direction;
Initialization module, for the degree of confidence initialization to all pixels in described image to be repaired; Specific as follows:
In formula, p' is the pixel in described image to be repaired; The degree of confidence that C (p') is pixel p'; Ω is the affected area in described image to be repaired, and Φ is the non-affected area in described image to be repaired;
for getting arbitrary value;
refer to that the affected area in described image to be repaired gets any pixel;
refer to that the non-affected area in described image to be repaired gets any pixel;
Formwork chooses module, for choosing the formwork of each pixel described respectively in described image damaged boundary to be repaired centered by each pixel;
Computing module, for the size according to the damaged degree priority of each pixel place formwork in image damaged boundary to be repaired described in following formulae discovery, and by damaged degree priority according to descending sort from big to small;
P(p)=a
1C(p)+a
2D(p)+a
3H(p);
In formula, p is the pixel of described formwork center; The damaged degree priority that P (p) is pixel p; a
1, a
2, a
3for weight, and and be 1;
H (p)=Kh+exp (-h); K is controling parameter, and value is 0.8; Exp (-h)=e
-h, e
-hfor taking e as the exponential function of the truth of a matter, e=2.71828; H is local metric function, h=| λ
1-λ
2|
2, λ
1and λ
2be respectively the First Eigenvalue and the Second Eigenvalue of described formwork structure tensor expression formula, expression formula is:
Wherein, j
11, j
12, j
22obtained by its structure tensor expression formula to be repaired, described its structure tensor expression formula to be repaired is:
refer to G
ρwith
ask convolution algorithm;
refer to G
ρwith
ask convolution algorithm;
refer to G
ρwith
ask convolution algorithm;
C (p) is the degree of confidence of described formwork center pixel p; D (p) is the data item of described formwork center pixel p;
In formula, ψ
pfor the formwork that damaged boundary is put centered by pixel p, Φ is the non-affected area in described image to be repaired, ψ
pthe common factor of the non-affected area in ∩ Φ finger print plate and described image to be repaired,
for the pixel in the common factor of the affected area in described formwork and described image to be repaired, i.e. the pixel of non-affected area in described formwork,
for pixel
degree of confidence, | Ψ
p| be the area of formwork, the quantity of pixel in finger print plate;
for the direction of the isophote of pixel p, i.e. the vertical direction of gradient, n
pfor the unit direction vector of pixel p, α is normalized factor, and in gray level image, value is 255;
Wherein, described computing module comprises setting unit, for arranging weight a according to picture structure
1, a
2, a
3, when image texture characteristic to be repaired enriches, a
1account for the largest percentage; When T-shaped partial structurtes abundant information such as turnings in image to be repaired, a
2account for the largest percentage; When linear structure is enriched, a
3account for the largest percentage;
Described setting unit also for when image texture characteristic to be repaired enriches, a
1: a
2: a
3=3:1:1; In described image to be repaired during the T-shaped partial structurtes abundant information of corner, a
1: a
2: a
3=1:3:1; Described when linear structure is enriched, a
1: a
2: a
3=1:1:3.
Matching module, for finding the highest region of the formwork similarity maximum with described damaged degree priority in the non-affected area of described image to be repaired, as blocks and optimal matching blocks.
Described matching module comprises:
Judging unit, for traveling through the sample block of all non-affected area in described image to be repaired, the size of the formwork that described sample block is maximum with described damaged degree priority is identical, and in judging the formwork that described damaged degree priority is maximum in all pixel value sums and described sample block all pixel value sums whether meet following relational expression:
(1-δ)·sum(Ψ
p”)≤sum(Ψ
q')≤(1+δ)·sum(Ψ
p”);
In formula, p " be the known pixel of pixel in the maximum formwork of described damaged degree priority, Ψ
p "for the region that pixel in the formwork that described damaged degree priority is maximum is known; Sum (Ψ
p ") refer to that in the formwork maximum to described damaged degree priority, all pixel point values of pixel known portions are sued for peace; Q' is the corresponding pixel of pixel that in formwork maximum with described damaged degree priority in described sample block, pixel is known, Ψ
q'for the region that the region that pixel in formwork maximum with described damaged degree priority in described sample block is known is corresponding; Sum (Ψ
q') refer to that the pixel point value corresponding to known pixels point in formwork maximum with described damaged degree priority in described sample block is sued for peace; δ value is [0,1];
Color-match unit, for after all pixel value sums meet the relational expression in judging unit in pixel value sums all in described sample block and the maximum formwork of the maximum described damaged degree priority of described damaged degree priority, carries out color-match;
Described color-match unit carries out color-match according to following formula:
In formula,
refer to ask for make
get the ψ of minimum value
q; λ
1for the First Eigenvalue of the maximum formwork structure tensor expression formula of described damaged degree priority; λ
2for the Second Eigenvalue of the maximum formwork structure tensor expression formula of described damaged degree priority; λ '
1for the First Eigenvalue of sample block structure tensor expression formula; λ '
2the Second Eigenvalue of sample block structure tensor expression formula; Φ is non-affected area in described image to be repaired;
for the formwork that described damaged degree priority is maximum; Q is the pixel of the formwork center that in sample block, corresponding described damaged degree priority is maximum; ψ
qfor the sample block put centered by pixel q; N is the quantity of all pixels in described formwork;
for the sample block that color-match degree in non-affected area is the highest;
the formwork maximum for described damaged degree priority and the color sum of squares of deviations of sample block, expression formula is:
In formula, I
rfor the gray-scale value of known pixels point in R passage in formwork; I
r' be the gray-scale value of known pixels point in R passage in sample block; I
gfor the gray-scale value of known pixels point in G passage in formwork; I
g' be the gray-scale value of known pixels point in G passage in sample block; I
bfor the gray-scale value of known pixels point in channel B in formwork; I
b' be the gray-scale value of known pixels point in channel B in sample block.
Replication module, for copying to the pixel value in described blocks and optimal matching blocks in the maximum formwork of described damaged degree priority.
Update module, for upgrade the maximum formwork of described damaged degree priority according to following formula damaged area in the degree of confidence of all pixels, and return computing module, until image to be repaired is repaired completely;
In formula, p
mfor the pixel of the center of the maximum formwork of described damaged degree priority; C (p
m) be pixel p
mdegree of confidence,
for the formwork that described damaged degree priority is maximum, Ω is the affected area in described image to be repaired,
refer to the formwork that described damaged degree priority is maximum
with the common factor of affected area Ω in described image to be repaired, the affected area in the formwork that namely described damaged degree priority is maximum;
refer to that in the formwork that described damaged degree priority is maximum, get any pixel in affected area is
for the pixel in damaged area in the formwork that described damaged degree priority is maximum,
for pixel in damaged area in the formwork that described damaged degree priority is maximum
degree of confidence.
Optimum Matching unit, for using sample block the highest for color-match degree as blocks and optimal matching blocks.
Below by experiment, effect of the present invention is described:
Fig. 2, Fig. 3, Fig. 4, Fig. 5 and Fig. 6 is respectively the Comparative result figure utilizing existing method and the inventive method to repair image to be repaired in the present invention's experiment, figure (a1), figure (b1), figure (c1), figure (d1) and figure (e1) is original image, figure (a2), figure (b2), figure (c2), figure (d2) and figure (e2) is image to be repaired, figure (a3), figure (b3), figure (c3), figure (d3) and figure (e3) is respectively and utilizes Criminsi algorithm of the prior art to carry out the result figure repaired, figure (a4), figure (b4), figure (c4), figure (d4) and figure (e4) are respectively and utilize CDD model restore design to carry out the result figure repaired, figure (a5), figure (b5), figure (c5), figure (d5) and figure (e5) are respectively and utilize the image repair algorithm based on textures synthesis improved to carry out the result figure repaired, figure (a6), figure (b6), figure (c6), figure (d6) and figure (e6) are respectively and utilize method of the present invention to carry out the result figure repaired.
Table 4.1, table 4.2, table 4.3 and table 4.4 are respectively and utilize existing method and method of the present invention to start with from evaluation criterion to contrast, and evaluation criterion comprises: Y-PSNR (PSNR), absolute mean error (MAE), structural similarity (MSSIM) and program runtime (s); Shown in specific as follows:
PSNR (dB) value of all kinds of algorithm of table 4.1 compares
The MAE value of all kinds of algorithm of table 4.2 compares
The MSSIM value of all kinds of algorithm of table 4.3 compares
The working time (s) of all kinds of algorithm of table 4.4 compares
Every experimental data shows that the inventive method is in all kinds of objective evaluation index above, i.e. PSNR value, MAE value structural similarity (SSIM) and be all better than other several existing methods working time.Mainly due to following 3 points: the 1) introducing of picture structure measure function, and priority becomes the pro forma transformation of addition from being multiplied, ensure that and the propagation that image structure information is correct and preferential improve repairing effect; 2) introducing of structure tensor eigenwert makes mating of multiblock to be repaired and object block more accurate, reduces erroneous matching rate and the cumulative rate of mistake of former algorithm, visual effect is had obvious improvement; 3) transformation of way of search, decreases the redundance of to be matched piece, reduces time complexity, and remediation efficiency is significantly increased.
These are only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1., based on an Images uniting restorative procedure for partial structurtes feature, it is characterized in that, comprise the following steps:
Step 1, input an image to be repaired, be designated as u (x, y), x, y are respectively the coordinate of image to be repaired on x, y direction;
Step 2, to the degree of confidence initialization of all pixels in described image to be repaired; Specific as follows:
In formula, p' is the pixel in described image to be repaired; The degree of confidence that C (p') is pixel p'; Ω is the affected area in described image to be repaired, and Φ is the non-affected area in described image to be repaired;
for getting arbitrary value;
refer to that the affected area in described image to be repaired gets any pixel;
refer to that the non-affected area in described image to be repaired gets any pixel;
Step 3, chooses the formwork of each pixel described respectively in described image damaged boundary to be repaired centered by each pixel;
Step 4, according to the size of the damaged degree priority of each pixel place formwork in image damaged boundary to be repaired described in following formulae discovery, and by damaged degree priority according to descending sort from big to small;
P(p)=a
1C(p)+a
2D(p)+a
3H(p);
Wherein, p is the pixel of described formwork center; The damaged degree priority that P (p) is pixel p; a
1, a
2, a
3for weight, and a
1, a
2, a
3and be 1;
H (p)=Kh+exp (-h); K is controling parameter, and value is 0.8; Exp (-h)=e
-h, e
-hfor taking e as the exponential function of the truth of a matter, e=2.71828; H is local metric function, h=| λ
1-λ
2|
2, λ
1and λ
2be respectively the First Eigenvalue and the Second Eigenvalue of described formwork structure tensor expression formula, expression formula is:
Wherein, j
11, j
12, j
22obtained by its structure tensor expression formula to be repaired, described its structure tensor expression formula to be repaired is:
Refer to G
ρwith
ask convolution algorithm;
refer to G
ρwith
ask convolution algorithm;
refer to G
ρwith
ask convolution algorithm;
C (p) is the degree of confidence of described formwork center pixel p; D (p) is the data item of described formwork center pixel p;
In formula, ψ
pfor the formwork that damaged boundary is put centered by pixel p, Φ is the non-affected area in described image to be repaired, ψ
pthe common factor of the non-affected area in ∩ Φ finger print plate and described image to be repaired,
for the pixel in the common factor of the non-affected area in described formwork and described image to be repaired, i.e. the pixel of non-affected area in described formwork,
for pixel
degree of confidence, | Ψ
p| be the area of formwork, the quantity of pixel in finger print plate;
for the direction of the isophote of pixel p, i.e. the vertical direction of gradient, n
pfor the unit direction vector of pixel p, α is normalized factor, and in gray level image, value is 255;
Step 5, finds the formwork maximum with described damaged degree priority in the non-affected area of described image to be repaired
the region that similarity is the highest, as blocks and optimal matching blocks;
Step 6, copies to the formwork that described damaged degree priority is maximum by the pixel value in described blocks and optimal matching blocks
in;
Step 7, upgrades the maximum formwork of described damaged degree priority according to following formula
damaged area in the degree of confidence of all pixels, and return step 4, until image to be repaired is repaired completely;
In formula, p
mfor the pixel of the center of the maximum formwork of described damaged degree priority; C (p
m) be pixel p
mdegree of confidence,
for the formwork that described damaged degree priority is maximum, Ω is the affected area in described image to be repaired,
refer to the formwork that described damaged degree priority is maximum
with the common factor of affected area Ω in described image to be repaired, the affected area in the formwork that namely described damaged degree priority is maximum;
refer to that in the formwork that described damaged degree priority is maximum, get any pixel in affected area is
for the pixel in damaged area in the formwork that described damaged degree priority is maximum,
for pixel in damaged area in the formwork that described damaged degree priority is maximum
degree of confidence.
2. a kind of Images uniting restorative procedure based on partial structurtes feature according to claim 1, it is characterized in that, described step 5 comprises the following steps:
Step 5.1, travel through the sample block of all non-affected area in described image to be repaired, the size of the formwork that described sample block is maximum with described damaged degree priority is identical, and in judging the formwork that described damaged degree priority is maximum in all pixel value sums and described sample block all pixel value sums whether meet following relational expression:
(1-δ)·sum(Ψ
p”)≤sum(Ψ
q')≤(1+δ)·sum(Ψ
p”);
In formula, p " be the known pixel of pixel in the maximum formwork of described damaged degree priority, Ψ
p "for the region that pixel in the formwork that described damaged degree priority is maximum is known; Sum (Ψ
p ") refer to that in the formwork maximum to described damaged degree priority, all pixel point values of pixel known portions are sued for peace; Q' is the corresponding pixel of pixel that in formwork maximum with described damaged degree priority in described sample block, pixel is known, Ψ
q'for the region that the region that pixel in formwork maximum with described damaged degree priority in described sample block is known is corresponding; Sum (Ψ
q') refer to that the pixel point value corresponding to known pixels point in formwork maximum with described damaged degree priority in described sample block is sued for peace; δ value is [0,1];
Step 5.2, after all pixel value sums meet the relational expression in step 5.1 in pixel value sums all in described sample block and the maximum formwork of the maximum described damaged degree priority of described damaged degree priority, carries out color-match;
Step 5.3, using sample block the highest for color-match degree as blocks and optimal matching blocks.
3., according to a kind of Images uniting restorative procedure based on partial structurtes feature described in claim 2, it is characterized in that, in described step 5.2, carry out color-match according to following formula:
In formula,
refer to ask for make
get the ψ of minimum value
q; λ
1for the First Eigenvalue of the maximum formwork structure tensor expression formula of described damaged degree priority; λ
2for the Second Eigenvalue of the maximum formwork structure tensor expression formula of described damaged degree priority; λ '
1for the First Eigenvalue of sample block structure tensor expression formula; λ '
2the Second Eigenvalue of sample block structure tensor expression formula; Φ is non-affected area in described image to be repaired;
for the formwork that described damaged degree priority is maximum; Q is the pixel of the formwork center that in sample block, corresponding described damaged degree priority is maximum; ψ
qfor the sample block put centered by pixel q; N is the quantity of all pixels in described formwork;
for the sample block that color-match degree in non-affected area is the highest;
the formwork maximum for described damaged degree priority and the color sum of squares of deviations of sample block, expression formula is:
In formula, I
rfor the gray-scale value of known pixels point in R passage in formwork; I
r' be the gray-scale value of known pixels point in R passage in sample block; I
gfor the gray-scale value of known pixels point in G passage in formwork; I
g' be the gray-scale value of known pixels point in G passage in sample block; I
bfor the gray-scale value of known pixels point in channel B in formwork; I
b' be the gray-scale value of known pixels point in channel B in sample block.
4. a kind of Images uniting restorative procedure based on partial structurtes feature according to claim 1 or 2 or 3, is characterized in that, described weight a
1, a
2, a
3can arrange according to picture structure, when image texture characteristic to be repaired enriches, a
1account for the largest percentage; When T-shaped partial structurtes abundant information such as turnings in image to be repaired, a
2account for the largest percentage; When linear structure is enriched, a
3account for the largest percentage.
5. a kind of Images uniting restorative procedure based on partial structurtes feature according to claim 4, is characterized in that, described when image texture characteristic to be repaired enriches, a
1: a
2: a
3=3:1:1; In described image to be repaired during the T-shaped partial structurtes abundant information of corner, a
1: a
2: a
3=1:3:1; Described when linear structure is enriched, a
1: a
2: a
3=1:1:3.
6., based on an Images uniting repair system for partial structurtes feature, it is characterized in that, comprising:
Load module, for inputting an image to be repaired, is designated as u (x, y), and x, y are respectively the coordinate of image to be repaired on x, y direction;
Initialization module, for the degree of confidence initialization to all pixels in described image to be repaired; Specific as follows:
In formula, p' is the pixel in described image to be repaired; The degree of confidence that C (p') is pixel p'; Ω is the affected area in described image to be repaired, and Φ is the non-affected area in described image to be repaired;
for getting arbitrary value;
refer to that the affected area in described image to be repaired gets any pixel;
refer to that the non-affected area in described image to be repaired gets any pixel;
Formwork chooses module, for choosing the formwork of each pixel described respectively in described image damaged boundary to be repaired centered by each pixel;
Computing module, for the size according to the damaged degree priority of each pixel place formwork in image damaged boundary to be repaired described in following formulae discovery, and by damaged degree priority according to descending sort from big to small;
P(p)=a
1C(p)+a
2D(p)+a
3H(p);
In formula, p is the pixel of described formwork center; The damaged degree priority that P (p) is pixel p; a
1, a
2, a
3for weight, and a
1, a
2, a
3and be 1;
H (p)=Kh+exp (-h); K is controling parameter, and value is 0.8; Exp (-h)=e
-h, e
-hfor taking e as the exponential function of the truth of a matter, e=2.71828; H is local metric function, h=| λ
1-λ
2|
2, λ
1and λ
2be respectively the First Eigenvalue and the Second Eigenvalue of described formwork structure tensor expression formula, expression formula is:
Wherein, j
11, j
12, j
22obtained by its structure tensor expression formula to be repaired, described its structure tensor expression formula to be repaired is:
Wherein, G
ρfor taking ρ as the Gaussian kernel function of parameter, ρ=1;
refer to G
ρwith
ask convolution algorithm;
refer to G
ρwith
ask convolution algorithm;
refer to G
ρwith
ask convolution algorithm;
C (p) is the degree of confidence of described formwork center pixel p; D (p) is the data item of described formwork center pixel p;
In formula, ψ
pfor the formwork that damaged boundary is put centered by pixel p, Φ is the non-affected area in described image to be repaired, ψ
pthe common factor of the non-affected area in ∩ Φ finger print plate and described image to be repaired,
for the pixel in the common factor of the affected area in described formwork and described image to be repaired, i.e. the pixel of non-affected area in described formwork,
for pixel
degree of confidence, | Ψ
p| be the area of formwork, the quantity of pixel in finger print plate;
for the direction of the isophote of pixel p, i.e. the vertical direction of gradient, n
pfor the unit direction vector of pixel p, α is normalized factor, and in gray level image, value is 255;
Matching module, for finding the highest region of the formwork similarity maximum with described damaged degree priority in the non-affected area of described image to be repaired, as blocks and optimal matching blocks;
Replication module, for copying in the maximum formwork of described damaged degree priority by the pixel value in described blocks and optimal matching blocks;
Update module, for upgrade the maximum formwork of described damaged degree priority according to following formula damaged area in the degree of confidence of all pixels, and return computing module, until image to be repaired is repaired completely;
In formula, p
mfor the pixel of the center of the maximum formwork of described damaged degree priority; C (p
m) be pixel p
mdegree of confidence,
for the formwork that described damaged degree priority is maximum, Ω is the affected area in described image to be repaired,
refer to the formwork that described damaged degree priority is maximum
with the common factor of affected area Ω in described image to be repaired, the affected area in the formwork that namely described damaged degree priority is maximum;
refer to that in the formwork that described damaged degree priority is maximum, get any pixel in affected area is
for the pixel in damaged area in the formwork that described damaged degree priority is maximum,
for pixel in damaged area in the formwork that described damaged degree priority is maximum
degree of confidence.
7. a kind of Images uniting repair system based on partial structurtes feature according to claim 6, it is characterized in that, described matching module comprises:
Judging unit, for traveling through the sample block of all non-affected area in described image to be repaired, the size of the formwork that described sample block is maximum with described damaged degree priority is identical, and in judging the formwork that described damaged degree priority is maximum in all pixel value sums and described sample block all pixel value sums whether meet following relational expression:
(1-δ)·sum(Ψ
p”)≤sum(Ψ
q')≤(1+δ)·sum(Ψ
p”);
In formula, p " be the known pixel of pixel in the maximum formwork of described damaged degree priority, Ψ
p "for the region that pixel in the formwork that described damaged degree priority is maximum is known; Sum (Ψ
p ") refer to that in the formwork maximum to described damaged degree priority, all pixel point values of pixel known portions are sued for peace; Q' is the corresponding pixel of pixel that in formwork maximum with described damaged degree priority in described sample block, pixel is known, Ψ
q'for the region that the region that pixel in formwork maximum with described damaged degree priority in described sample block is known is corresponding; Sum (Ψ
q') refer to that the pixel point value corresponding to known pixels point in formwork maximum with described damaged degree priority in described sample block is sued for peace; δ value is [0,1];
Color-match unit, for after all pixel value sums meet the relational expression in described judging unit in pixel value sums all in described sample block and the maximum formwork of the maximum described damaged degree priority of described damaged degree priority, carries out color-match;
Optimum Matching unit, for using sample block the highest for color-match degree as blocks and optimal matching blocks.
8. a kind of Images uniting repair system based on partial structurtes feature according to claim 7, it is characterized in that, described color-match unit carries out color-match according to following formula:
In formula,
refer to ask for make
get the ψ of minimum value
q; λ
1for the First Eigenvalue of the maximum formwork structure tensor expression formula of described damaged degree priority; λ
2for the Second Eigenvalue of the maximum formwork structure tensor expression formula of described damaged degree priority; λ '
1for the First Eigenvalue of sample block structure tensor expression formula; λ '
2the Second Eigenvalue of sample block structure tensor expression formula; Φ is non-affected area in described image to be repaired;
for the formwork that described damaged degree priority is maximum; Q is the pixel of the formwork center that in sample block, corresponding described damaged degree priority is maximum; ψ
qfor the sample block put centered by pixel q; N is the quantity of all pixels in described formwork;
for the sample block that color-match degree in non-affected area is the highest;
the formwork maximum for described damaged degree priority and the color sum of squares of deviations of sample block, expression formula is:
In formula, I
rfor the gray-scale value of known pixels point in R passage in formwork; I
r' be the gray-scale value of known pixels point in R passage in sample block; I
gfor the gray-scale value of known pixels point in G passage in formwork; I
g' be the gray-scale value of known pixels point in G passage in sample block; I
bfor the gray-scale value of known pixels point in channel B in formwork; I
b' be the gray-scale value of known pixels point in channel B in sample block.
9. a kind of Images uniting repair system based on partial structurtes feature according to claim 6 or 7 or 8, it is characterized in that, described computing module comprises setting unit, for arranging weight a according to picture structure
1, a
2, a
3, when image texture characteristic to be repaired enriches, a
1account for the largest percentage; When T-shaped partial structurtes abundant information such as turnings in image to be repaired, a
2account for the largest percentage; When linear structure is enriched, a
3account for the largest percentage.
10. a kind of Images uniting repair system based on partial structurtes feature according to claim 9, is characterized in that, described setting unit also for when image texture characteristic to be repaired enriches, a
1: a
2: a
3=3:1:1; In described image to be repaired during the T-shaped partial structurtes abundant information of corner, a
1: a
2: a
3=1:3:1; Described when linear structure is enriched, a
1: a
2: a
3=1:1:3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510330001.7A CN104966279B (en) | 2015-06-15 | 2015-06-15 | A kind of image synthesis restorative procedure and system based on partial structurtes feature |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510330001.7A CN104966279B (en) | 2015-06-15 | 2015-06-15 | A kind of image synthesis restorative procedure and system based on partial structurtes feature |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104966279A true CN104966279A (en) | 2015-10-07 |
CN104966279B CN104966279B (en) | 2017-09-26 |
Family
ID=54220310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510330001.7A Expired - Fee Related CN104966279B (en) | 2015-06-15 | 2015-06-15 | A kind of image synthesis restorative procedure and system based on partial structurtes feature |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104966279B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105809635A (en) * | 2016-01-22 | 2016-07-27 | 河南理工大学 | Image block matching restoration method based on line scanning |
CN106204503A (en) * | 2016-09-08 | 2016-12-07 | 天津大学 | Based on improving confidence level renewal function and the image repair algorithm of matching criterior |
CN107967673A (en) * | 2017-12-03 | 2018-04-27 | 天津大学 | A kind of adaptive sample block image repair method |
CN108846816A (en) * | 2018-06-20 | 2018-11-20 | 上海理工大学 | A kind of ciphertext domain image repair method |
CN110021184A (en) * | 2019-03-20 | 2019-07-16 | 泰州腾翔信息科技有限公司 | Data presentation system based on image procossing |
CN111241898A (en) * | 2019-03-20 | 2020-06-05 | 泰州腾翔信息科技有限公司 | Data display method based on image processing |
CN111899184A (en) * | 2020-03-31 | 2020-11-06 | 珠海市杰理科技股份有限公司 | Image defect repairing and neural network training method, device, equipment and system |
CN112150373A (en) * | 2019-06-28 | 2020-12-29 | 北京京东振世信息技术有限公司 | Image processing method, image processing apparatus, and readable storage medium |
CN112349150A (en) * | 2020-11-19 | 2021-02-09 | 飞友科技有限公司 | Video acquisition method and system for airport flight guarantee time node |
CN113256527A (en) * | 2021-05-31 | 2021-08-13 | 广东联通通信建设有限公司 | Image restoration method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040165787A1 (en) * | 2003-02-24 | 2004-08-26 | Patrick Perez | Image region filling by example-based tiling |
CN104376535A (en) * | 2014-11-04 | 2015-02-25 | 徐州工程学院 | Rapid image repairing method based on sample |
CN104574317A (en) * | 2015-01-19 | 2015-04-29 | 天津大学 | Image inpainting method based on isoluxline |
-
2015
- 2015-06-15 CN CN201510330001.7A patent/CN104966279B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040165787A1 (en) * | 2003-02-24 | 2004-08-26 | Patrick Perez | Image region filling by example-based tiling |
CN104376535A (en) * | 2014-11-04 | 2015-02-25 | 徐州工程学院 | Rapid image repairing method based on sample |
CN104574317A (en) * | 2015-01-19 | 2015-04-29 | 天津大学 | Image inpainting method based on isoluxline |
Non-Patent Citations (2)
Title |
---|
ZHOU YATONG等: ""RESEARCH ON WEIGHTED PRl0RITY OF EXEMPLAR-BASED IMAGE INPAINTING"", 《JOURNAL OF ELECTRONICS(CHINA)》 * |
杨秀红: ""基于结构张量的数字图像修复技术研究"", 《中国博士学位论文全文数据库 信息科技辑》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105809635A (en) * | 2016-01-22 | 2016-07-27 | 河南理工大学 | Image block matching restoration method based on line scanning |
CN106204503A (en) * | 2016-09-08 | 2016-12-07 | 天津大学 | Based on improving confidence level renewal function and the image repair algorithm of matching criterior |
CN106204503B (en) * | 2016-09-08 | 2018-11-09 | 天津大学 | Based on the image repair algorithm for improving confidence level renewal function and matching criterior |
CN107967673A (en) * | 2017-12-03 | 2018-04-27 | 天津大学 | A kind of adaptive sample block image repair method |
CN107967673B (en) * | 2017-12-03 | 2019-12-17 | 天津大学 | Self-adaptive sample block image restoration method |
CN108846816B (en) * | 2018-06-20 | 2021-10-01 | 上海理工大学 | Ciphertext domain image restoration method |
CN108846816A (en) * | 2018-06-20 | 2018-11-20 | 上海理工大学 | A kind of ciphertext domain image repair method |
CN110021184A (en) * | 2019-03-20 | 2019-07-16 | 泰州腾翔信息科技有限公司 | Data presentation system based on image procossing |
CN111241898A (en) * | 2019-03-20 | 2020-06-05 | 泰州腾翔信息科技有限公司 | Data display method based on image processing |
CN111241898B (en) * | 2019-03-20 | 2020-11-10 | 吕衍荣 | Data display method based on image processing |
CN112150373A (en) * | 2019-06-28 | 2020-12-29 | 北京京东振世信息技术有限公司 | Image processing method, image processing apparatus, and readable storage medium |
CN112150373B (en) * | 2019-06-28 | 2023-09-26 | 北京京东振世信息技术有限公司 | Image processing method, image processing apparatus, and readable storage medium |
CN111899184A (en) * | 2020-03-31 | 2020-11-06 | 珠海市杰理科技股份有限公司 | Image defect repairing and neural network training method, device, equipment and system |
CN111899184B (en) * | 2020-03-31 | 2023-11-28 | 珠海市杰理科技股份有限公司 | Image defect repair and neural network training method, device, equipment and system |
CN112349150A (en) * | 2020-11-19 | 2021-02-09 | 飞友科技有限公司 | Video acquisition method and system for airport flight guarantee time node |
CN113256527A (en) * | 2021-05-31 | 2021-08-13 | 广东联通通信建设有限公司 | Image restoration method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104966279B (en) | 2017-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104966279A (en) | Image synthesis restoration method based on local structure features | |
CN106023089B (en) | A kind of image repair method based on Block- matching | |
CN104091339B (en) | Rapid image three-dimensional matching method and device | |
CN103578085B (en) | Image cavity region based on variable-block method for repairing and mending | |
CN106204503B (en) | Based on the image repair algorithm for improving confidence level renewal function and matching criterior | |
CN102999887B (en) | Sample based image repairing method | |
CN105046694A (en) | Quick point cloud registration method based on curved surface fitting coefficient features | |
CN107967673B (en) | Self-adaptive sample block image restoration method | |
CN104992143B (en) | A kind of Chinese-character stroke extraction method towards vector font | |
CN104680487A (en) | Non-local image inpainting method based on low-rank matrix recovery | |
CN108629809B (en) | Accurate and efficient stereo matching method | |
CN102903111B (en) | Large area based on Iamge Segmentation low texture area Stereo Matching Algorithm | |
CN105469110A (en) | Non-rigid transformation image characteristic matching method based on local linear transfer and system | |
CN102567970B (en) | Image restoring method and device | |
CN102800077B (en) | Bayes non-local mean image restoration method | |
CN105069766B (en) | A kind of an inscription on a tablet restorative procedure based on the description of Chinese character image contour feature | |
Nan et al. | An improved Criminisi algorithm based on a new priority function and updating confidence | |
CN105488754A (en) | Local linear migration and affine transformation based image feature matching method and system | |
CN108491885A (en) | A kind of autoCAD graphic blocks identifying method and devices based on Naive Bayes Classifier | |
CN103093011B (en) | Based on the feature recognition algorithms of cad model | |
Choi et al. | An exemplar-based image inpainting method with search region prior | |
CN103150711A (en) | Open computing language (OpenCL)-based image repair method | |
CN103559722B (en) | Based on the sequence image amount of jitter computing method of gray scale linear modelling | |
Wang et al. | Image inpainting based on structural tensor edge intensity model | |
CN111179190B (en) | Image restoration method based on Criminisi |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170926 Termination date: 20210615 |
|
CF01 | Termination of patent right due to non-payment of annual fee |