CN104200444A - Image restoring method based on symmetric sample pieces - Google Patents

Image restoring method based on symmetric sample pieces Download PDF

Info

Publication number
CN104200444A
CN104200444A CN201410498115.8A CN201410498115A CN104200444A CN 104200444 A CN104200444 A CN 104200444A CN 201410498115 A CN201410498115 A CN 201410498115A CN 104200444 A CN104200444 A CN 104200444A
Authority
CN
China
Prior art keywords
damaged
piece
psi
image
point
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
Application number
CN201410498115.8A
Other languages
Chinese (zh)
Other versions
CN104200444B (en
Inventor
王维兰
贾艳军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Northwest Minzu University
Original Assignee
Northwest Minzu University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Northwest Minzu University filed Critical Northwest Minzu University
Priority to CN201410498115.8A priority Critical patent/CN104200444B/en
Publication of CN104200444A publication Critical patent/CN104200444A/en
Application granted granted Critical
Publication of CN104200444B publication Critical patent/CN104200444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The invention provides an image restoring method based on symmetric sample pieces. The image restoring method comprises the following steps: original damaged image pre-processing, damaged zone segmentation and damaged zone restoration, wherein the original damaged image pre-processing comprises image Gauss smoothening, image graying processing; then damaged zone segmentation and damaged zone restoration are conducted; the damaged zone restoration is a recycling process which comprises the following steps: acquiring boundary points in the damaged zone, acquiring a point with highest priority in the boundary of the damaged zone and the first restored damaged piece as well as selecting a method for searching optimal symmetric sample pieces; the method for searching the optimal symmetric sample pieces comprises two methods, namely, searching symmetric sample pieces at any direction or searching symmetric sample pieces in eight directions, and each of the two methods comprises the following steps: updating pixel of the damaged pieces, updating area of the damaged zone and judging whether the area of the damaged zone is zero, if the area of the damaged zone is zero, stopping the restoration; if the area of the damaged zone is not zero, returning to the acquired boundary points for conducting the recycling process. The restoring experiment shows the effectiveness of the image restoring method.

Description

Image repair method based on balanced sample piece
Technical field
The invention belongs to Digital Image Processing and digital picture and repair field, be specifically related to the image repair method based on balanced sample piece.
Background technology
Since " image repair " concept in 2000, introduce after Digital Image Processing, short more than ten years, digital picture reparation is widely used, and mainly comprises: ancient painting numeral is restored, recovered word in damaged photo and film, image and object and removes etc.So-called digital picture reparation is exactly the process of information filling that defect area on image is carried out, and its object is exactly for to there being damaged image to recover, and visually cannot perceive the once damaged or effect that has been repaired of image.In image repair technology, a class is reparation algorithm based on partial differential equation or the variation recovery technique based on several picture model, utilizes the marginal information for the treatment of repairing area, repairs small scale deletion problem.Another kind of is image completion technology for the bulk drop-out of blank map picture, comprise two kinds of methods: a kind of is method based on decomposing, by picture breakdown, be structure and texture part, wherein structure division is repaired with image repair algorithm, and texture part is filled by the synthetic method of texture.Also having a kind of is that block-based Future Opportunities of Texture Synthesis is filled the information of losing, it is from zone boundary to be repaired, to choose a pixel, and centered by this point, according to the textural characteristics of image, choose sizeable texture block, then in the surrounding of multiblock to be repaired, find the most similar with it Texture Matching piece and replace.Yet image repair remains a difficult thing.
Existing Digital Image Inpainting can't effectively be repaired a large amount of symmetric graph pictures, as Tangka's image, mural painting etc., a lot of images have certain symmetrical structure, in image, some crucial pieces is damaged, as one side ear of Sakyamuni Mo Nifo in a width Tangka loses, if only utilize ear's peripheral information reparation in this image, cannot obtain needed result.
Summary of the invention
In order to utilize, be repaired the symmetric information possessing in image, repair damaged area, the invention provides a kind of image repair method based on balanced sample piece, it is a kind of effective digitized image restorative procedure that utilizes the information filling damaged area of damaged area a certain symmetry direction on image.
In order to realize the object of the invention, the technical scheme that the present invention takes is: a kind of image repair method based on balanced sample piece, comprise to former breakage image carry out pre-service, damaged area is cut apart and repair damaged area, concrete steps are as follows:
A. former breakage image is carried out to pre-service
A.1 image is carried out to Gaussian smoothing
Because Gaussian smoothing edge keeps better, conventionally using following 5 * 5 or 3 * 3 Gaussian smoothing template mask image:
1 273 × 1 4 7 4 1 4 16 26 16 4 7 26 41 26 7 4 16 26 16 4 1 4 7 4 1 1 16 × 1 2 1 2 4 2 1 2 1
A.2 image gray processing is processed
Adopt mean value method by coloured image gray processing, obtain R, the G of each pixel of image, the mean value of tri-component pixel values of B, and generate its gray level image;
B. damaged area is cut apart
Conventional image partition method comprises thresholding method, boundary segmentation method and region growing method Equal method; The present invention adopts the dividing method of region growing, and its process is:
B.1. adopt the method for man-machine interaction, in being repaired the damage zone of image, choose arbitrarily a bit as Seed Points coordinate (x r, y r), and on gray level image, record its pixel value p r(x r, y r);
B.2. create a two-value template image mask onesize with former figure, by pixel value p in template image mask r(x r, y r) being made as 1, rest of pixels is set to 0;
B.3. on gray level image, pass through algorithm 1, draw the some set that in template image mask, pixel value is 1, with regard to the damaged area of corresponding original image, be namely partitioned into the damaged area of original image;
The step that algorithm 1 comprises:
(1) create a storehouse;
(2) obtain Seed Points (x r, y r) and pixel value p r(x r, y r);
(3) with Seed Points (x r, y r) centered by, calculate its pixel value p r(x r, y r) and eight neighborhood territory pixel value p i(x i, y i) poor, if | p r(x r, y r)-p i(x i, y i) | < M, (i=1,2,3,4,5,6,7,8), the value of M is determined according to experiment, generally get 10, and on mask opposite position, pixel value is at 0 o'clock, by point (x i, y i) being pressed into storehouse, the pixel value on mask relevant position is made as 1;
(4) judge that whether storehouse is empty, if not for sky, take out a pixel from storehouse, is used as it as point (x r, y r), go back to step (3), otherwise turn to step (5);
(5) finish;
C. repair damaged area
C.1 obtain the frontier point of damaged area
C.1.1 create a queue, be used for storing damaged area frontier point;
C.1.2 obtain damaged area frontier point: to two-value template image mask, the Wei Yuantu damaged area, region that wherein pixel value is 1, traversal view picture mask image, if the pixel value of pixel is 1, and its eight adjacent pixel values has at least one to be 0, the pixel that is just 1 by pixel value deposits in queue, and the queue finally obtaining is exactly the frontier point of damaged area;
C.2 obtain the point that on border, damaged area, right of priority is the highest and the damaged piece of repairing at first
Figure 2 shows that right of priority peak on border and the damaged piece of repairing at first calculate schematic diagram, Ι represents full figure, and Ω represents damaged area, and δ Ω represents the border of damaged area Ω, the unbroken part of Φ presentation video, and p represents the point on the δ Ω of border, damaged area, n pa unit normal vector at p place, represent the isophot curve direction that p is ordered, Ψ pbe on border centered by the p point, comprised the damaged piece of putting in point in Ω and Φ; The point that on border, damaged area, right of priority is the highest and the damaged piece computation process of the reparation at first centered by this point are as follows:
C.2.1 on computation bound, put the right of priority of p, by formula (1), calculated,
P(p)=C(p)D(p) (1)
In formula (1): C (p) represents the confidence factor that p is ordered, D (p) represents the data factor that p is ordered, and C (p) is calculated by formula (2),
C ( p ) = &Sigma; q &Element; &Psi; p &cap; ( I - &Omega; ) C ( q ) | &Psi; p | - - - ( 2 )
In formula (2): | Ψ p| be Ψ parea, in image confidence factor a little according to formula (3) initialization,
C ( k ) = 0 &ForAll; k &Element; &Omega; 1 &ForAll; k &Element; I - &Omega; - - - ( 3 )
In formula (1), D (p) through type (4) calculates,
D ( p ) = | &dtri; I p &perp; &CenterDot; n p | &alpha; - - - ( 4 )
Wherein α is normalized factor, is the maximal value of image gray levels;
C.2.2 on computation bound right of priority a little, thereby and the size of fiducial value obtain the highest point of right of priority, be designated as p 0;
C.2.3 obtain with p 0centered by the piece of repairing at first this piece size according to damaged area texture structure around, select and sizable of texture structure, adopt the mode of man-machine interaction, the length of side of piece can be the odd number between 3 to 99, the piece of 3 * 3 to 99 * 99 sizes, generally selects 9 * 9,11 * 11 to 33 * 33; Then enter step c 3; If image have left and right, upper and lower, upper right with all directions of lower-left, upper left and bottom right to one of symmetrical situation, select based on all directions to balanced sample piece restorative procedure, otherwise be chosen in the restorative procedure that any direction is searched for balanced sample piece;
In fact, the method for any direction search balanced sample piece reparation has ubiquity, can replace the reparation to balanced sample piece based on all directions completely; If but piece image is symmetrical, there is damaged area in left side, based on faster to the reparation speed of balanced sample piece from all directions, it is relatively consuming time that any direction is searched for the method that best balanced sample piece repairs; So enter after step c 3, can be chosen in any direction search balanced sample piece or based on from all directions to the image repair mode of balanced sample piece, once a kind of selected method is repaired according to selected this method circulation until repair and finish;
C.3 search in any direction best balanced sample piece or in the image repair of the best balanced sample pieces of eight direction findings
C.3.1 find in any direction best balanced sample piece
C.3.1.1 in I-Ω with arbitrfary point p 1centered by sample block choose
As shown in Figure 3, p 0the central point of repairing at first piece, p 1be the central point of sample block to be found, obtain p 1and p 0line and horizontal direction angle theta, utilize formula (5) to obtain p 1rotate to and p 0p on same level line position 2coordinate:
x 2 = ( x 1 - x 0 ) cos &theta; + ( y 1 - y 0 ) sin &theta; + x 0 y 2 = - ( x 1 - x 0 ) sin &theta; + ( y 1 - y 0 ) cos &theta; + y 0 - - - ( 5 )
In formula (5): x 0, x 1and x 2respectively p 0, p 1and p 2horizontal ordinate, y 0, y 1and y 2respectively p 0, p 1and p 2ordinate;
Acquisition is with p 2centered by, size and identical and with become the sample block of horizontal symmetrical take 3 * 3 as example, the corresponding relation of damaged piece and sample block is as shown in Fig. 4 and Fig. 5, and Fig. 4 is damaged piece fig. 5 represents horizontal symmetrical sample block two piece symmetric positions of numeral wherein; Recycling formula (6) obtains sample block the position at opposite spin θ angle:
x ' = ( x - x 0 ) cos &theta; - ( y - y 0 ) sin &theta; + x 0 y ' = ( x - x 0 ) sin &theta; + ( y - y 0 ) cos &theta; + y 0 - - - ( 6 )
In formula (6): before (x, y) represents reverse rotation the coordinate of middle arbitrfary point, (x ', y ') represent behind rotation θ angle the coordinate of middle corresponding point; after rotation, with point corresponding relation and with corresponding relation identical, obtain with p 1centered by balanced sample piece;
C.3.1.2 at I-Ω, search for best balanced sample piece, by formula (7), calculated,
&Psi; p ^ = arg min p 1 &Element; I - &Omega; d ( &Psi; p 0 , &Psi; p 1 ) - - - ( 7 )
In formula (7): represent best balanced sample piece, with p 1centered by sample block, represent multiblock to be repaired at first with balanced sample piece between similarity measurement, by formula (8), calculate,
d ( &Psi; p 0 , &Psi; p 1 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y i ( m - j + 1 ) ) 2 - - - ( 8 )
In formula (8): x ijrepresent the pixel value of mid point, y ijrepresent the pixel value of mid point, the size of piece determines the value of m, if select the size of piece, is 3 * 3, the value of m is 3;
C.3.1.3 the renewal of damaged piece
C.3.1.3.1 according to the corresponding relation in Fig. 4 and Fig. 5, by damaged piece in best balanced sample piece for damaged pixel value in respective pixel value replace;
C.3.1.3.2 upgrade the confidence factor of previous step filler pixels point, by formula (9), calculated,
C ( p ) = C ( p ^ ) &ForAll; p &Element; &Psi; p ^ &cap; &Omega; - - - ( 9 )
The pixel value of corresponding point in mask on former breakage image filling point position is updated to 0 simultaneously;
C.3.1.4 upgrade the area of damaged area, calculate the pixel count in damaged area after filling
Because calculating the damaged piece that right of priority is the highest is centered by frontier point at every turn, so existing unbroken image slices vegetarian refreshments has again the point in damaged area in damaged piece, and the point in these damaged area is filled by the optimal sample piece corresponding point of finding on symmetry direction in this breakage piece, along with filling the area of damaged area, dwindle gradually; Therefore, every filling once will be recalculated the area of damaged area afterwards, and statistics is filled the number of pixels of rear damaged area, to judge whether repair process finishes; If damaged area area is zero, reparation completes, otherwise repeats to do step c 1, step c 2 and step c 3.1;
C.3.2 at the best balanced sample piece of eight direction findings
As shown in Figure 6, in figure, the left ear of the figure of buddha is damaged, right ear is intact, can utilize symmetrical property to repair fast left ear; Eight arrows represent the damaged piece Ψ centered by p peight directions, from these eight direction finding balanced sample pieces, each direction is found out a similar sample block of symmetry, then from wherein finding out best balanced sample piece, Ψ qΨ pbest balanced sample piece; Calculation procedure is as follows:
C.3.2.1 at eight similar balanced sample pieces of direction finding
From eight directions, find symmetrical similar sample block by formula (10), calculated:
&Psi; q ^ i = arg min d i ( &Psi;p , &Psi; q i ) ( i = 1,2,3,4,5,6,7,8 ) - - - ( 10 )
In formula (10): represent Ψ pwith similarity measure, subscript 1,2,3,4,5,6,7 and 8 represent respectively a left side, upper left, upper, upper right, the right side, bottom right, under, lower left; 1, the Comparability of 2,3 and 4 four directions formula (11) calculating for amount, the Comparability of 5,6,7 and 8 four directions is formula (12) calculating for amount:
d 1 ( &Psi;p , &Psi; q 1 = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y i ( m - j + 1 ) ) 2 ) d 2 ( &Psi;p , &Psi; q 2 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ( m - j + 1 ) ( m - i + 1 ) ) 2 d 3 ( &Psi;p , &Psi; q 3 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ( m - i + 1 ) j ) 2 d 4 ( &Psi;p , &Psi; q 4 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ij ) 2 - - - ( 11 )
d 5 ( &Psi;p , &Psi; q 5 = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y i ( m - j + 1 ) ) 2 ) d 6 ( &Psi;p , &Psi; q 6 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ( m - j + 1 ) ( m - i + 1 ) ) 2 d 7 ( &Psi;p , &Psi; q 7 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ( m - i + 1 ) j ) 2 d 8 ( &Psi;p , &Psi; q 8 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ij ) 2 - - - ( 12 )
In formula (11), (12): x ijrepresent Ψ pthe pixel value of mid point, y ijrepresent the pixel value of mid point;
C.3.2.2 the calculating of best balanced sample piece
From eight similar sample block of symmetry, find Best similarity balanced sample piece, can calculate according to formula (13):
&Psi;q = arg min d i ( &Psi;p , &Psi; q ^ i ) ( i = 1,2,3,4,5,6,7,8 ) - - - ( 13 )
C.3.2.3 upgrade the damaged pixel of damaged piece
C.3.2.3.1 according to following rule Ψ qin pixel value upgrade Ψ pmiddle damaged pixel, when pixel is at Ψ pin scanning sequency be from left to right, from top to bottom time, corresponding Ψ qin scanning sequency be (referring to table 1): when the direction at best balanced sample piece place is 1 or 5, pixel scanning sequency is from right to left, from top to bottom in best balanced sample piece; When the direction at best balanced sample piece place is 2 or 6, in best balanced sample piece, pixel scanning sequency is from top to bottom, from right to left; When the direction at best balanced sample piece place is 3 or 7, in best balanced sample piece, pixel scanning sequency is from left to right, from top to bottom; When the direction at best balanced sample piece place is 4 or 8, in best balanced sample piece, pixel scanning sequency is from top to bottom, from left to right; And by Ψ pmiddle damaged pixel Ψ qthe pixel value of middle correspondence is filled;
The best balanced sample piece pixel scanning sequency table of eight directions of table 1.
Best balanced sample piece place direction Pixel scanning sequency in best balanced sample piece
1 or 5 From right to left, from top to bottom
2 or 6 From top to bottom, from right to left
3 or 7 From left to right, from top to bottom
4 or 8 From top to bottom, from left to right
Take block size 3 * 3 as example, optimal sample piece left to time, Fig. 7 has described the process that damaged piece pixel is upgraded, wherein a represents damaged piece Ψ p, b represents best balanced sample piece Ψ q, the numeral scanning sequency in a, b, the corresponding pixel of digital identical expression, if Ψ pin 4 belong to damaged pixel, just use Ψ qthe pixel value of middle position 4 is filled;
C.3.2.3.2 upgrade the confidence factor of previous step filler pixels point, by formula (9), calculated; The pixel value of corresponding point in mask on image filling point position is updated to 0 simultaneously;
C.3.2.4 upgrade the area of damaged area, if damaged area area is zero, reparation completes, otherwise repeats to do step c 1, step c 2 and step c 3.2.
The present invention is for a large amount of breakage image reparations, and reparative experiment has illustrated the validity of the inventive method.
Technique effect of the present invention is as follows: the present invention has good repairing effect to having certain symmetric breakage image, the prerequisite of repairing is to be accurately partitioned into damaged area, if damaged area segmentation result is not good enough, natural repairing effect is bad, and aftermentioned embodiment part example is by pre-service, be accurately partitioned into the image of damaged area.
Accompanying drawing explanation
Fig. 1 is the image repair process flow diagram based on balanced sample piece,
Fig. 2 is that on border, right of priority peak and the damaged piece repaired at first calculate schematic diagram,
Fig. 3 is the balanced sample piece conversion schematic diagram of any direction,
Fig. 4 is 3 * 3 sample block schematic diagram,
Fig. 5 is 3 * 3 damaged piece schematic diagram,
Fig. 6 is eight direction exemplary plot of damaged piece,
Fig. 7 upgrades damaged piece pixel schematic diagram with 3 * 3 balanced sample pieces,
Fig. 8 is symmetrical breakage image visually,
Fig. 9 is to the size of balanced sample piece, piece, to be from all directions the reparation result of 33 * 33 o'clock Fig. 8,
Figure 10 is Manjusri's Bodhisattva Tangka image, and head slightly tilts, pileum part is damaged,
Figure 11 is the reparation result of any direction balanced sample piece to Figure 10,
Figure 12 is the reparation result to Figure 10 to balanced sample piece from all directions.
Embodiment
Thereby the present invention mainly solves breakage image, there is certain symmetry and carry out the reparation problem based on balanced sample piece; Technical scheme of the present invention is the image repair method based on balanced sample piece, and whole process comprises repairs pre-service, the cutting apart with damaged area of damaged area to former breakage image.Referring to Fig. 1: former breakage image is carried out to pre-service and comprise: to image carry out Gaussian smoothing, image gray processing is processed; Then entering damaged area cuts apart with damaged area and repairs; Repair damaged area is the process of an iterative cycles, this process comprise obtains damaged area frontier point, obtain the point that on border, damaged area, right of priority is the highest and the damaged piece of repairing at first, and select to search for best balanced sample block method; Select the best balanced sample block method of search to comprise that any direction searches for best balanced sample piece or two kinds of methods of the best balanced sample piece of eight direction findings, these two kinds of methods all comprise to be upgraded damaged pixel, the area of renewal damaged area of damaged piece and judges whether the area of damaged area is zero, to repair and finish; No, get back to the frontier point repetitive cycling that obtains damaged area.
Embodiment 1
1. the former breakage image shown in couple Fig. 8 carries out pre-service
Fig. 8 is Sakyamuni Buddha Tangka coloured image, and left side ear, face, eyes and part eyebrow are damaged; Former breakage image is carried out to pre-service and mainly comprise image is carried out to level and smooth and gray processing processing, smoothing processing is in order to eliminate noise, so that the better effects if that image is cut apart; Because cutting apart on gray level image of damaged area carried out, so preprocessing part has comprised, the gray processing of former breakage image to be processed, preprocessing process is: 1.1 pairs of images carry out Gaussian smoothing
Because Gaussian smoothing edge keeps better, the present embodiment is selected 5 * 5 Gaussian smoothing template mask images:
1 273 &times; 1 4 7 4 1 4 16 26 16 4 7 26 41 26 7 4 16 26 16 4 1 4 7 4 1
1.2 image gray processings are processed
Adopt mean value method by coloured image gray processing, obtain R, the G of each pixel of image, the mean value of tri-component pixel values of B, and generate the gray level image of original color image.
2. damaged area is cut apart
Conventional image partition method comprises thresholding method, boundary segmentation method and region growing method Equal method; In the present invention, damaged area cut apart the dividing method that adopts region growing, its process is:
2.1. adopt the method for man-machine interaction, in being repaired the damage zone of image, choose arbitrarily a bit as Seed Points coordinate (x r, y r), and record its pixel value p r(x r, y r);
2.2. create a two-value template image mask onesize with former figure, by p in template image mask r(x r, y r) being made as 1, rest of pixels is set to 0;
2.3. by algorithm 1, obtain the some set that in template image mask, pixel value is 1, the damaged area of the corresponding original images of these pixel set, has been partitioned into the damaged area of original image.
The concrete steps of algorithm 1 are:
(1) create a storehouse;
(2) obtain Seed Points (x r, y r) and pixel value p r(x r, y r);
(3) with Seed Points (x r, y r) centered by, calculate its pixel value p r(x r, y r) and eight neighborhood territory pixel value p r(x i, y i) poor, if | p r(x r, y r)-p i(x i, y i) | < M, (i=1,2,3,4,5,6,7,8), the value of M is determined according to experiment, be generally taken as 10, and on template image mask relevant position, pixel value is at 0 o'clock, by point (x i, y i) being pressed into storehouse, the pixel value on mask relevant position is made as 1;
(4) judge that whether storehouse is empty, if not for sky, take out a pixel from storehouse, is used as it as point (x r, y r), forward (3) step to, otherwise turn to (5);
(5) finish.
3. repair damaged area
Repair damaged area based on balanced sample piece is the process of a circulation, comprise obtain damaged area frontier point, obtain point that on border, damaged area, right of priority is the highest and the damaged piece of repairing at first, the best balanced sample pieces of eight direction findings, upgrade the damaged pixel of damaged piece and upgrade the area of damaged area, until the area of damaged area is when being zero, whole repair process finishes, thereby obtains the result images after repairing; That is to say, on gray level image, be partitioned into behind damaged area, on two-value template image mask, represent damaged area, and on original image, repair damaged area; Along with each filling of damaged area is repaired, two-value template image mask also constantly updates the upper damaged area representing, until mask completes reparation when above the area of represented damaged area is zero.Process following steps are carried out:
3.1 obtain the frontier point of damaged area
3.1.1 create a queue, be used for storing damaged area frontier point;
When 3.1.2 image is cut apart, obtain bianry image mask, the Wei Yuantu damaged area, region that wherein pixel value is 1; Traversal view picture mask image, if the pixel value of pixel is 1, and its eight adjacent pixel values has at least one to be 0, and the pixel that is just 1 by pixel value deposits in queue, and the queue finally obtaining is exactly the frontier point set of damaged area.
3.2 obtain the point that on border, damaged area, right of priority is the highest and the damaged piece of repairing at first
Figure 2 shows that right of priority peak on border and the damaged piece of repairing at first calculate schematic diagram, Ι represents full figure, and Ω represents damaged area, δ Ω represents the border of damaged area Ω, the unbroken part of Φ presentation video, Ρ represents the point on the δ Ω of border, damaged area, n pa unit normal vector at p place, represent the isophot curve direction that p is ordered, Ψ pbe on border centered by the p point, comprised the damaged piece of putting in point in Ω and Φ; The point that on border, damaged area, right of priority is the highest and the damaged piece computation process of the reparation at first centered by this point are as follows:
3.2.1 on computation bound, put the right of priority of p, by (1) formula, obtained:
P(p)=C(p)D(p) (1)
In formula (1), C (p) represents the confidence factor that p is ordered, and D (p) represents the data factor that p is ordered, and C (p) is determined by formula (2):
C ( p ) = &Sigma; q &Element; &Psi; p &cap; ( I - &Omega; ) C ( q ) | &Psi; p | - - - ( 2 )
Wherein | Ψ p| be Ψ parea, i.e. piece Ψ pthe quantity of interior pixel, in image confidence factor a little according to formula (3) initialization:
C ( k ) = 0 &ForAll; k &Element; &Omega; 1 &ForAll; k &Element; I - &Omega; - - - ( 3 )
In formula (1), D (p) calculates by formula (4):
D ( p ) = | &dtri; I p &perp; &CenterDot; n p | &alpha; - - - ( 4 )
Wherein minute two vectorial inner products of subrepresentation of (4) formula take absolute value again, and α is normalized factor, is the maximal value of image gray levels.
3.2.2 on computation bound right of priority a little, thereby and the size of fiducial value obtain the highest point of right of priority, be designated as p;
3.2.3 obtain the piece Ψ repairing at first centered by p p, this piece Ψ psize according to damaged area texture structure around, select and sizable of texture structure, adopt the mode of man-machine interaction, the length of side of piece can be the odd number between 3 to 99, i.e. the piece of 3 * 3 to 99 * 99 sizes, it is 33 that the present embodiment is selected the length of side of piece; Then enter step 3.3; Because the image of Fig. 8 has the situation of left and right directions symmetry, thus select based on from all directions to balanced sample piece repair.
3.3 image repair at the best balanced sample piece of eight direction findings
3.3.1 at the best balanced sample piece of eight direction findings
As shown in Figure 8, in figure, the left side ear of the figure of buddha, face, eyes and part eyebrow are damaged; Find the highest multiblock Ψ to be repaired of right of priority pall directions to best balanced sample piece Ψ qstep as follows:
3.3.1.1 at eight similar balanced sample pieces of direction finding
The similar sample block of symmetry that finds Ψ p from eight directions by formula (10), calculated:
&Psi; q ^ i = arg min d i ( &Psi;p , &Psi; q i ) ( i = 1,2,3,4,5,6,7,8 ) - - - ( 10 )
In formula (10): represent Ψ pwith similarity measure, subscript 1,2,3,4,5,6,7 and 8 represent respectively a left side, upper left, upper, upper right, the right side, bottom right, under, lower left, 1, the Comparability of 2,3 and 4 four directions formula (11) calculating for amount, the Comparability of 5,6,7 and 8 four directions is formula (12) calculating for amount:
d 1 ( &Psi;p , &Psi; q 1 = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y i ( m - j + 1 ) ) 2 ) d 2 ( &Psi;p , &Psi; q 2 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ( m - j + 1 ) ( m - i + 1 ) ) 2 d 3 ( &Psi;p , &Psi; q 3 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ( m - i + 1 ) j ) 2 d 4 ( &Psi;p , &Psi; q 4 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ij ) 2 - - - ( 11 )
d 5 ( &Psi;p , &Psi; q 5 = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y i ( m - j + 1 ) ) 2 ) d 6 ( &Psi;p , &Psi; q 6 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ( m - j + 1 ) ( m - i + 1 ) ) 2 d 7 ( &Psi;p , &Psi; q 7 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ( m - i + 1 ) j ) 2 d 8 ( &Psi;p , &Psi; q 8 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ij ) 2 - - - ( 12 )
In formula (11), (12): x ijrepresent Ψ pthe pixel value of mid point, y ijrepresent the pixel value of mid point;
3.3.1.2 the calculating of best balanced sample piece
From eight similar sample block of symmetry, find Best similarity balanced sample piece, can calculate according to formula (13):
&Psi;q = arg min d i ( &Psi;p , &Psi; q ^ i ) ( i = 1,2,3,4,5,6,7,8 ) - - - ( 13 )
3.3.1.3 upgrade the damaged pixel of damaged piece
3.3.1.3.1 according to following rule Ψ qin pixel value upgrade Ψ pmiddle damaged pixel, when pixel is at Ψ pin scanning sequency be from left to right, from top to bottom time, corresponding Ψ qin scanning sequency be (referring to table 1): when the direction at best balanced sample piece place is 1 or 5, pixel scanning sequency is from right to left, from top to bottom in best balanced sample piece; When the direction at best balanced sample piece place is 2 or 6, in best balanced sample piece, pixel scanning sequency is from top to bottom, from right to left; When the direction at best balanced sample piece place is 3 or 7, in best balanced sample piece, pixel scanning sequency is from left to right, from top to bottom; When the direction at best balanced sample piece place is 4 or 8, in best balanced sample piece, pixel scanning sequency is from top to bottom, from left to right; And by Ψ pmiddle damaged pixel Ψ qthe pixel value of middle correspondence is filled;
3.3.1.3.2 upgrade the confidence factor of previous step filler pixels point, by formula (9), calculated:
C ( p ) = C ( p ^ ) &ForAll; p &Element; &Psi; p ^ &cap; &Omega; - - - ( 9 )
3.3.1.4 upgrade the area of damaged area, if damaged area area is zero, reparation completes, otherwise repeats to do step 3.1, step 3.2 and step 3.3.
The present embodiment is to breakage image shown in Fig. 8, adopt all directions to the method reparation of balanced sample piece, the size of selection piece is 33 * 33, result as shown in Figure 9, to this breakage image, if select the size of piece between 33 * 33 and 43 * 43, vestiges of almost not seeing reparation as shown in Figure 9 all; If select piece to be less than 33 * 33, to be greater than 43 * 43, reparation result is all undesirable.Illustrate relevant with the selection of sample block size to the repairing effect of balanced sample piece from all directions.
Embodiment 2, Figure 10 shows that Manjusri's Bodhisattva Tangka image, and a side of pileum has breakage, and head has a bit, and the former breakage image shown in Figure 10 is carried out to pre-service to the method providing according to embodiment 1 step 1 and step 2 and damaged area is cut apart; Then enter step:
3. repair damaged area
3.1 obtain the frontier point of damaged area, with embodiment 1;
3.2 obtain the point that on border, damaged area, right of priority is the highest and the damaged piece of repairing at first, with embodiment 1;
3.3 find best balanced sample piece in any direction carries out image repair
3.3.1 find in any direction best balanced sample piece
3.3.1.1 in I-Ω with arbitrfary point p 1centered by sample block choose
As shown in Figure 3, p 0the central point of repairing at first piece, p 1be the central point of sample block to be found, obtain p 1and p 0line and horizontal direction angle theta, utilize formula (5) to obtain p 1rotate to and p 0p on same level line position 2coordinate:
x 2 = ( x 1 - x 0 ) cos &theta; + ( y 1 - y 0 ) sin &theta; + x 0 y 2 = - ( x 1 - x 0 ) sin &theta; + ( y 1 - y 0 ) cos &theta; + y 0 - - - ( 5 )
In formula (5): x 0, x 1and x 2respectively p 0, p 1and p 2horizontal ordinate, y 0, y 1and y 2respectively p 0, p 1and p 2ordinate;
Acquisition is with p 2centered by, size and identical and with become the sample block of horizontal symmetrical recycling formula (6) obtains sample block the position at opposite spin θ angle:
x ' = ( x - x 0 ) cos &theta; - ( y - y 0 ) sin &theta; + x 0 y ' = ( x - x 0 ) sin &theta; + ( y - y 0 ) cos &theta; + y 0 - - - ( 6 )
In formula (6): before (x, y) represents reverse rotation the coordinate of middle arbitrfary point, (x ', y ') represent behind rotation θ angle the coordinate of middle corresponding point; after rotation, with point corresponding relation and with corresponding relation identical, obtain with p 1centered by balanced sample piece;
3.3.1.2 at I-Ω, search for best balanced sample piece, by formula (7), calculated,
&Psi; p ^ = arg min p 1 &Element; I - &Omega; d ( &Psi; p 0 , &Psi; p 1 ) - - - ( 7 )
In formula (7): represent best balanced sample piece, the sample block centered by p1, represent multiblock to be repaired at first with balanced sample piece between similarity measurement, by formula (8), calculate,
d ( &Psi; p 0 , &Psi; p 1 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y i ( m - j + 1 ) ) 2 - - - ( 8 )
In formula (8): x ijrepresent the pixel value of mid point, yij represents the pixel value of mid point, the size of piece is 33 * 33;
3.3.1.3 the renewal of damaged piece
3.3.1.3.1 by damaged piece in best balanced sample piece for damaged pixel value in respective pixel value replace;
3.3.1.3.2 upgrade the confidence factor of previous step filler pixels point, can be calculated by formula (9),
C ( p ) = C ( p ^ ) &ForAll; p &Element; &Psi; p ^ &cap; &Omega; - - - ( 9 )
The pixel value of corresponding point in mask on former breakage image filling point position is updated to 0 simultaneously;
3.3.1.4 upgrade the area of damaged area, calculate the pixel count in damaged area after filling
Statistics is filled the number of pixels of rear damaged area, to judge whether repair process finishes; If damaged area area is zero, reparation completes, otherwise repeats to do step 3.1, step 3.2 and step 3.3.
Adopt the present embodiment to the result of Figure 10 reparation as shown in figure 11, can find out that repairing effect is fairly good.
Figure 12 is for adopting the reparation result to Figure 10 to balanced sample piece restorative procedure from all directions, effect is flaw well but slightly also, illustrate the breakage image shown in Figure 10 do not have from all directions to one of symmetry, so select from all directions to best balanced sample piece restorative procedure effect not as the best balanced sample piece of any direction restorative procedure.
In addition, breakage image shown in Fig. 8 is also adopted to the method reparation of the best balanced sample piece of any direction, the size of piece is between 33 * 33 and 43 * 43 time, repair result and also almost do not see the vestige of reparation, just adopt the restorative procedure of the best balanced sample piece of any direction than consuming time to best balanced sample piece restorative procedure from all directions; If select other big or small sample block, reparation result is also all undesirable.

Claims (2)

1. the image repair method based on balanced sample piece, it is characterized in that comprising to former breakage image carry out pre-service, damaged area is cut apart and repair damaged area, concrete steps are as follows:
A. former breakage image is carried out to pre-service
A.1 image is carried out to Gaussian smoothing
Gaussian smoothing template mask image with following 5 * 5 or 3 * 3:
1 273 &times; 1 4 7 4 1 4 16 26 16 4 7 26 41 26 7 4 16 26 16 4 1 4 7 4 1 1 16 &times; 1 2 1 2 4 2 1 2 1
A.2 image gray processing is processed
Adopt mean value method by coloured image gray processing, obtain R, the G of each pixel of image, the mean value of tri-component pixel values of B, and generate its gray level image;
B. damaged area is cut apart
The dividing method that adopts region growing, its process is:
B.1. adopt the method for man-machine interaction, in being repaired the damage zone of image, choose arbitrarily a bit as Seed Points coordinate (x r, y r), and on gray level image, record its pixel value p r(x r, y r);
B.2. create a two-value template image mask onesize with former figure, by pixel value p in template image mask r(x r, y r) being made as 1, rest of pixels is set to 0;
B.3. on gray level image, pass through algorithm 1, draw the some set that in template image mask, pixel value is 1, with regard to the damaged area of corresponding original image, be namely partitioned into the damaged area of original image; Algorithm 1 comprises step: (1) creates a storehouse;
(2) obtain Seed Points (x r, y r) and pixel value p r(x r, y r);
(3) with Seed Points (x r, y r) centered by, calculate its pixel value p r(x r, y r) and eight neighborhood territory pixel value p i(x i, y i) poor, if | p r(x r, y r)-p i(x i, y i) | < M, (i=1,2,3,4,5,6,7,8), the value of M is determined according to experiment, generally get 10, and on mask opposite position, pixel value is at 0 o'clock, by point (x i, y i) being pressed into storehouse, the pixel value on mask relevant position is made as 1;
(4) judge that whether storehouse is empty, if not for sky, take out a pixel from storehouse, is used as it as point (x r, y r), go back to step (3), otherwise turn to step (5);
(5) finish;
C. repair damaged area
C.1 obtain the frontier point of damaged area
C.1.1 create a queue, be used for storing damaged area frontier point;
C.1.2 obtain damaged area frontier point: to two-value template image mask, the Wei Yuantu damaged area, region that wherein pixel value is 1, traversal view picture mask image, if the pixel value of pixel is 1, and its eight adjacent pixel values has at least one to be 0, the pixel that is just 1 by pixel value deposits in queue, and the queue finally obtaining is exactly the frontier point of damaged area;
C.2 obtain the point that on border, damaged area, right of priority is the highest and the damaged piece of repairing at first
Ι represents full figure, and Ω represents damaged area, and δ Ω represents the border of damaged area Ω, the unbroken part of Φ presentation video, and p represents the point on the δ Ω of border, damaged area, n pa unit normal vector at p place, represent the isophot curve direction that p is ordered, Ψ pbe on border centered by the p point, comprised the damaged piece of putting in point in Ω and Φ; The point that on border, damaged area, right of priority is the highest and the damaged piece computation process of the reparation at first centered by this point are as follows:
C.2.1 on computation bound, put the right of priority of p, by formula (1), calculated,
P(p)=C(p)D(p) (1)
In formula (1): C (p) represents the confidence factor that p is ordered, D (p) represents the data factor that p is ordered, and C (p) is calculated by formula (2),
C ( p ) = &Sigma; q &Element; &Psi; p &cap; ( I - &Omega; ) C ( q ) | &Psi; p | - - - ( 2 )
In formula (2): | Ψ p| be Ψ parea, in image confidence factor a little according to formula (3) initialization,
C ( k ) = 0 &ForAll; k &Element; &Omega; 1 &ForAll; k &Element; I - &Omega; - - - ( 3 )
In formula (1), D (p) through type (4) calculates,
D ( p ) = | &dtri; I p &perp; &CenterDot; n p | &alpha; - - - ( 4 )
Wherein α is normalized factor, is the maximal value of image gray levels;
C.2.2 on computation bound right of priority a little, thereby and the size of fiducial value obtain the highest point of right of priority, be designated as p 0;
C.2.3 obtain with p 0centered by the piece of repairing at first this piece size according to damaged area texture structure around, select and sizable of texture structure, adopt the mode of man-machine interaction, the length of side of piece is the odd number between 3 to 99, i.e. the piece of 3 * 3 to 99 * 99 sizes; Then enter step c 3; If image have left and right, upper and lower, upper right with all directions of lower-left, upper left and bottom right to one of symmetrical situation, select based on all directions to balanced sample piece restorative procedure, otherwise be chosen in the restorative procedure that any direction is searched for balanced sample piece;
C.3 search in any direction best balanced sample piece or in the image repair of the best balanced sample pieces of eight direction findings
C.3.1 find in any direction best balanced sample piece
C.3.1.1 in I-Ω with arbitrfary point p 1centered by sample block choose
P 0the central point of repairing at first piece, p 1be the central point of sample block to be found, obtain p 1and p 0line and horizontal direction angle theta, utilize formula (5) to obtain p 1rotate to and p 0p on same level line position 2coordinate:
x 2 = ( x 1 - x 0 ) cos &theta; + ( y 1 - y 0 ) sin &theta; + x 0 y 2 = - ( x 1 - x 0 ) sin &theta; + ( y 1 - y 0 ) cos &theta; + y 0 - - - ( 5 )
In formula (5): x 0, x 1and x 2respectively p 0, p 1and p 2horizontal ordinate, y 0, y 1and y 2respectively p 0, p 1and p 2ordinate;
Acquisition is with p 2centered by, size and identical and with become the sample block of horizontal symmetrical take 3 * 3 as example, the corresponding relation of damaged piece and sample block is as shown in Fig. 4 and Fig. 5, and Fig. 4 is damaged piece fig. 5 represents horizontal symmetrical sample block two piece symmetric positions of numeral wherein; Recycling formula (6) obtains sample block the position at opposite spin θ angle:
x ' = ( x - x 0 ) cos &theta; - ( y - y 0 ) sin &theta; + x 0 y ' = ( x - x 0 ) sin &theta; + ( y - y 0 ) cos &theta; + y 0 - - - ( 6 )
In formula (6): before (x, y) represents reverse rotation the coordinate of middle arbitrfary point, (x ', y ') represent behind rotation θ angle the coordinate of middle corresponding point; after rotation, with point corresponding relation and with corresponding relation identical, obtain with p 1centered by balanced sample piece;
C.3.1.2 at I-Ω, search for best balanced sample piece, by formula (7), calculated,
&Psi; p ^ = arg min p 1 &Element; I - &Omega; d ( &Psi; p 0 , &Psi; p 1 ) - - - ( 7 )
In formula (7): represent best balanced sample piece, with p 1centered by sample block, represent multiblock to be repaired at first with balanced sample piece between similarity measurement, by formula (8), calculate,
d ( &Psi; p 0 , &Psi; p 1 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y i ( m - j + 1 ) ) 2 - - - ( 8 )
In formula (8): x ijrepresent the pixel value of mid point, y ijrepresent the pixel value of mid point, the size of piece determines the value of m, if select the size of piece, is 3 * 3, the value of m is 3;
C.3.1.3 the renewal of damaged piece
C.3.1.3.1 according to the corresponding relation in Fig. 4 and Fig. 5, by damaged piece in best balanced sample piece for damaged pixel value in respective pixel value replace;
C.3.1.3.2 upgrade the confidence factor of previous step filler pixels point, by formula (9), calculated,
C ( p ) = C ( p ^ ) &ForAll; p &Element; &Psi; p ^ &cap; &Omega; - - - ( 9 )
The pixel value of corresponding point in mask on former breakage image filling point position is updated to 0 simultaneously;
C.3.1.4 upgrade the area of damaged area, calculate the pixel count in damaged area after filling
Every filling once will be recalculated the area of damaged area afterwards, and statistics is filled the number of pixels of rear damaged area, to judge whether repair process finishes; If damaged area area is zero, reparation completes, otherwise repeats to do step c 1, step c 2 and step c 3.1;
C.3.2 at the best balanced sample piece of eight direction findings
Eight arrows represent the damaged piece Ψ centered by p peight directions, from these eight direction finding balanced sample pieces, each direction is found out a similar sample block of symmetry, then from wherein finding out best balanced sample piece, Ψ qΨ pbest balanced sample piece; Calculation procedure is as follows:
C.3.2.1 at eight similar balanced sample pieces of direction finding
From eight directions, find symmetrical similar sample block by formula (10), calculated:
&Psi; q ^ i = arg min d i ( &Psi;p , &Psi; q i ) ( i = 1,2,3,4,5,6,7,8 ) - - - ( 10 )
In formula (10): represent Ψ pwith similarity measure, subscript 1,2,3,4,5,6,7 and 8 represent respectively a left side, upper left, upper, upper right, the right side, bottom right, under, lower left; 1, the Comparability of 2,3 and 4 four directions formula (11) calculating for amount, the Comparability of 5,6,7 and 8 four directions is formula (12) calculating for amount:
d 1 ( &Psi;p , &Psi; q 1 = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y i ( m - j + 1 ) ) 2 ) d 2 ( &Psi;p , &Psi; q 2 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ( m - j + 1 ) ( m - i + 1 ) ) 2 d 3 ( &Psi;p , &Psi; q 3 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ( m - i + 1 ) j ) 2 d 4 ( &Psi;p , &Psi; q 4 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ij ) 2 - - - ( 11 )
d 5 ( &Psi;p , &Psi; q 5 = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y i ( m - j + 1 ) ) 2 ) d 6 ( &Psi;p , &Psi; q 6 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ( m - j + 1 ) ( m - i + 1 ) ) 2 d 7 ( &Psi;p , &Psi; q 7 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ( m - i + 1 ) j ) 2 d 8 ( &Psi;p , &Psi; q 8 ) = &Sigma; i = 1 m &Sigma; j = 1 m ( x ij - y ij ) 2 - - - ( 12 )
In formula (11), (12): x ijrepresent Ψ pthe pixel value of mid point, y ijrepresent the pixel value of mid point;
C.3.2.2 the calculating of best balanced sample piece
From eight similar sample block of symmetry, find Best similarity balanced sample piece, according to formula (13), calculate:
&Psi;q = arg min d i ( &Psi;p , &Psi; q ^ i ) ( i = 1,2,3,4,5,6,7,8 ) - - - ( 13 )
C.3.2.3 upgrade the damaged pixel of damaged piece
C.3.2.3.1 according to following rule Ψ qin pixel value upgrade Ψ pmiddle damaged pixel, when pixel is at Ψ pin scanning sequency be from left to right, from top to bottom time, corresponding Ψ qin scanning sequency be: when the direction at best balanced sample piece place is 1 or 5, pixel scanning sequency is from right to left, from top to bottom in best balanced sample piece; When the direction at best balanced sample piece place is 2 or 6, in best balanced sample piece, pixel scanning sequency is from top to bottom, from right to left; When the direction at best balanced sample piece place is 3 or 7, in best balanced sample piece, pixel scanning sequency is from left to right, from top to bottom; When the direction at best balanced sample piece place is 4 or 8, in best balanced sample piece, pixel scanning sequency is from top to bottom, from left to right; And by Ψ pmiddle damaged pixel Ψ qthe pixel value of middle correspondence is filled;
Take block size 3 * 3 as example, optimal sample piece left to time, Fig. 7 has described the process that damaged piece pixel is upgraded, wherein a represents damaged piece Ψ p, b represents best balanced sample piece Ψ q, the numeral scanning sequency in a, b, the corresponding pixel of digital identical expression, if Ψ pin 4 belong to damaged pixel, just use Ψ qthe pixel value of middle position 4 is filled;
C.3.2.3.2 upgrade the confidence factor of previous step filler pixels point, by formula (9), calculated; The pixel value of corresponding point in mask on image filling point position is updated to 0 simultaneously;
C.3.2.4 upgrade the area of damaged area, if damaged area area is zero, reparation completes, otherwise repeats to do step c 1, step c 2 and step c 3.2.
2. a kind of image repair method based on balanced sample piece as claimed in claim 1, is characterized in that in step c 2.3, selects 9 * 9,11 * 11 to 33 * 33 piece.
CN201410498115.8A 2014-09-25 2014-09-25 Image repair method based on balanced sample block Active CN104200444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410498115.8A CN104200444B (en) 2014-09-25 2014-09-25 Image repair method based on balanced sample block

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410498115.8A CN104200444B (en) 2014-09-25 2014-09-25 Image repair method based on balanced sample block

Publications (2)

Publication Number Publication Date
CN104200444A true CN104200444A (en) 2014-12-10
CN104200444B CN104200444B (en) 2017-08-25

Family

ID=52085730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410498115.8A Active CN104200444B (en) 2014-09-25 2014-09-25 Image repair method based on balanced sample block

Country Status (1)

Country Link
CN (1) CN104200444B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005974A (en) * 2015-07-06 2015-10-28 嘉恒医疗科技(上海)有限公司 Global repair based method and system for assignment for vacant voxels in ultrasound volume data
CN105118036A (en) * 2015-08-26 2015-12-02 广西小草信息产业有限责任公司 Method and system for restoring damaged image
CN106067167A (en) * 2016-06-06 2016-11-02 广东欧珀移动通信有限公司 Image processing method and device
CN106157296A (en) * 2016-05-10 2016-11-23 阜阳师范学院 A kind of dividing method of Tangka's image damaged area
CN107507136A (en) * 2017-07-14 2017-12-22 天津大学 Digital picture based on Rank conversion repairs algorithm
CN108665416A (en) * 2017-03-29 2018-10-16 清华大学 Damaged mural painting restorative procedure and system
CN109242791A (en) * 2018-08-22 2019-01-18 东北农业大学 A kind of batch restorative procedure for damaged plant leaf blade
CN109886887A (en) * 2019-01-28 2019-06-14 深圳大学 A kind of mural painting image repair processing method, system, device and storage medium
CN110533604A (en) * 2019-07-25 2019-12-03 安徽农业大学 For restoring the method, system and storage medium of the reflective organic image of sick pig
CN110536095A (en) * 2019-08-30 2019-12-03 Oppo广东移动通信有限公司 Call method, device, terminal and storage medium
WO2020029895A1 (en) * 2018-08-10 2020-02-13 厦门市美亚柏科信息股份有限公司 Image repairing method and apparatus, and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760285A (en) * 2012-05-31 2012-10-31 河海大学 Image restoration method
CN102999887B (en) * 2012-11-12 2015-07-01 中国科学院研究生院 Sample based image repairing method
CN103325095B (en) * 2013-06-24 2016-02-03 西南交通大学 A kind of openness image repair method of sample block of the bonding position factor
CN103955906A (en) * 2014-05-21 2014-07-30 武汉科技大学 Criminisi image restoration method based on bat algorithm

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A. CRIMINISI, P. PEREZ, K. TOYAMA: "Region filling and object removal by exemplar-based image inpainting", 《IEEE TRANSACTIONS ON IMAGE PROCESSING》 *
YANJUN JIA ET AL.: "A Novel Image Inpainting Method Based on Eight-Direction Symmetrical Exemplars", 《2013 6TH INTERNATIONAL CONGRESS ON IMAGE AND SIGNAL PROCESSING (CISP 2013)》 *
卢小宝: "综合偏微分方程的唐卡图像修复研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005974A (en) * 2015-07-06 2015-10-28 嘉恒医疗科技(上海)有限公司 Global repair based method and system for assignment for vacant voxels in ultrasound volume data
CN105118036A (en) * 2015-08-26 2015-12-02 广西小草信息产业有限责任公司 Method and system for restoring damaged image
CN106157296A (en) * 2016-05-10 2016-11-23 阜阳师范学院 A kind of dividing method of Tangka's image damaged area
CN106157296B (en) * 2016-05-10 2019-01-29 阜阳师范学院 A kind of dividing method of Tangka's image damaged area
CN106067167A (en) * 2016-06-06 2016-11-02 广东欧珀移动通信有限公司 Image processing method and device
CN108665416A (en) * 2017-03-29 2018-10-16 清华大学 Damaged mural painting restorative procedure and system
CN108665416B (en) * 2017-03-29 2020-10-30 清华大学 Damaged mural repairing method and system
CN107507136A (en) * 2017-07-14 2017-12-22 天津大学 Digital picture based on Rank conversion repairs algorithm
WO2020029895A1 (en) * 2018-08-10 2020-02-13 厦门市美亚柏科信息股份有限公司 Image repairing method and apparatus, and storage medium
CN109242791A (en) * 2018-08-22 2019-01-18 东北农业大学 A kind of batch restorative procedure for damaged plant leaf blade
CN109886887A (en) * 2019-01-28 2019-06-14 深圳大学 A kind of mural painting image repair processing method, system, device and storage medium
CN110533604A (en) * 2019-07-25 2019-12-03 安徽农业大学 For restoring the method, system and storage medium of the reflective organic image of sick pig
CN110533604B (en) * 2019-07-25 2023-05-16 安徽农业大学 Method, system and storage medium for restoring image of reflecting organ of sick pig
CN110536095A (en) * 2019-08-30 2019-12-03 Oppo广东移动通信有限公司 Call method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN104200444B (en) 2017-08-25

Similar Documents

Publication Publication Date Title
CN104200444A (en) Image restoring method based on symmetric sample pieces
CN104376535B (en) A kind of rapid image restorative procedure based on sample
CN103971338B (en) Variable-block image repair method based on saliency map
CN101777178B (en) Image restoring method
Zhou et al. Terrain synthesis from digital elevation models
CN101661613B (en) Image restoration method based on image segmentation, and system therefor
Mallast et al. Derivation of groundwater flow-paths based on semi-automatic extraction of lineaments from remote sensing data
US20150254499A1 (en) Multi-view 3d object recognition from a point cloud and change detection
CN103578085B (en) Image cavity region based on variable-block method for repairing and mending
CN105488758A (en) Image scaling method based on content awareness
CN104574317B (en) A kind of image repair method based on isophote
CN108346135B (en) Improved Criminisi image restoration method
CN104299263A (en) Method for modeling cloud scene based on single image
Galvanin et al. Extraction of building roof contours from LiDAR data using a Markov-random-field-based approach
CN103699900A (en) Automatic batch extraction method for horizontal vector contour of building in satellite image
CN104102904A (en) Static gesture identification method
CN104282000A (en) Image repairing method based on rotation and scale change
CN104134195A (en) Image restoration method based on geometric sparsity of blocks
CN104463952A (en) Human body scanning and modeling method
CN105069766B (en) A kind of an inscription on a tablet restorative procedure based on the description of Chinese character image contour feature
CN103679650A (en) Core three-dimension image repairing method
CN104992176B (en) A kind of Chinese character extracting method towards an inscription on a tablet
Paravolidakis et al. Coastline extraction from aerial images based on edge detection
CN104392417A (en) Image haze removal method based on pixel dark channel and anisotropic diffusion filtering
Zarif et al. Image completion: Survey and comparative study

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