CN104766283A - Digitized repairing method for grave mural image - Google Patents

Digitized repairing method for grave mural image Download PDF

Info

Publication number
CN104766283A
CN104766283A CN201510177721.4A CN201510177721A CN104766283A CN 104766283 A CN104766283 A CN 104766283A CN 201510177721 A CN201510177721 A CN 201510177721A CN 104766283 A CN104766283 A CN 104766283A
Authority
CN
China
Prior art keywords
image
repaired
repairing
grave
block
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
CN201510177721.4A
Other languages
Chinese (zh)
Other versions
CN104766283B (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.)
North University of China
Original Assignee
North University of China
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 North University of China filed Critical North University of China
Priority to CN201510177721.4A priority Critical patent/CN104766283B/en
Publication of CN104766283A publication Critical patent/CN104766283A/en
Application granted granted Critical
Publication of CN104766283B publication Critical patent/CN104766283B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The invention discloses a digitized repairing method for a grave mural image, and belongs to the field of digital image repairing. According to the method, a total variation mathematical model is utilized to decompose the grave mural image to obtain a cartoon image; a structure factor term is added in priority calculation, and the cartoon image is utilized to drive the priority calculation of edge points to be repaired; the point with the maximum priority serves as a center to construct a repairing block, and a sample block of which the Euclidean distance with the repairing block is smallest is searched in a known area; the average pixel difference quadratic sum of the repairing block and the sample block is calculated and compared with a set threshold value, the size of the repairing block is self-adaptively adjusted until the copy condition is met, and sample copying and edge updating are performed; lastly, an area to be repaired is checked, and if the area to be repaired is not null, the above steps are iterated until repairing is completed. The method overcomes the problems such as incoherence and overstretching generated in repairing of an existing method and is mainly used in (but not limited to) virtual repairing of the grave mural image.

Description

The Digital repair method of a kind of grave mural painting image
Technical field
The invention belongs to digital picture and repair field, be specially a kind of Digital repair method eliminating the grave mural painting image of the phenomenons such as the discontinuous and mistake extension produced in repair process.
Background technology
Digital Image Inpainting refers to and utilizes algorithm to carry out automatic filling to the loss of data in image local area or damage, recovers the technology of its vision continuity.Along with the development of computer technology, Digital Image Inpainting is intelligent with it, quick, the advantage of low cost, has been widely applied to the fields such as historical relic's protection, photo reparation, video display special effect making, barrier removal.
Grave mural painting is the cultural heritage of China's preciousness, and cultural morphology is unique, and artistic value is high.But, it is badly damaged that the weathering of environment and artificial destruction cause these mural paintings to receive, entity reparation expends greatly, difficulty is high, Digital repair not only can realize the work such as the virtual display of mural painting, and the peripheral doses process that can be mural painting entity provides sufficient scientific basis and test environment, is down to minimum by the danger of historical relic repair.
Grave mural painting is once damage can lose number of colors and structural information, and the restore design in recent years for grave mural painting image mainly contains three classes, the reparation based on partial differential equation, the reparation based on rarefaction representation and the recovery technique based on sample.First two recovery technique is better for the repairing effect of mural painting crackle, but in large area repair, all easily produce blooming, recovery technique based on sample then can overcome above-mentioned defect, sample restore design the most classical is the Criminisi algorithm proposed in 2004 by people such as Criminisi, this algorithm principle is simple, and texture repairing effect is better.But due to the impact of noise and tiny texture, the isophote discriminating direction of data item is inaccurate, and does not take into full account the preferential reparation of structural region, for the mural painting image that structural failure is more serious, in repair process, easily produce the discontinuous of structural information; And fix owing to repairing block size, for structure and the comparatively complicated region of texture, texture information often excessively extends, and causes repairing effect not good.
Summary of the invention
The present invention is the discontinuous of generation during solution grave mural painting is repaired and crosses the problems such as extension, provide the Digital repair method of a kind of grave mural painting image, the method is in conjunction with the obvious feature of grave mural painting picture structure, guided the calculating of priority by cartoon driving and structure factor, ensure that the continuity that image structure information is repaired; Repair block size by self-adaptation, inhibit the excessive extension of texture information, obtain good repairing effect.
The present invention adopts following technical scheme to realize: the Digital repair method of a kind of grave mural painting image, comprises the following steps:
S1: fixing digital camera, makes camera lens vertical with grave mural painting, gathers grave mural painting image;
S2: the damaged portion choosing grave mural painting image, is painted with white, as area to be repaired, remainder is as known region;
S3: construct full variation mathematical model and the image that S2 obtains is decomposed, obtain the cartoon image of filtering noise and tiny texture;
S4: the cartoon image utilizing S3 to obtain carries out the calculating driving priority, detailed process is as follows: calculate the confidence item of edge, cartoon image area to be repaired each point, data item and the structure factor item of rectangular block centered by edge each point, according to the priority of priority computing formula edge calculation each point, and obtain the coordinate of priority maximum point;
S5: according to the coordinate in S4, the point finding priority maximum in the image that S2 obtains, is designated as and with point centered by construction size be the multiblock to be repaired of m × m
S6: carry out global search in image known region, find with the block that color Euclidean distance is minimum, as the most similar sample block, is designated as Ψ q;
S7: calculate Ψ qwith multiblock to be repaired average pixel difference quadratic sum, be designated as ASSD ( Ψ q), and with threshold value T sSDcompare, detailed process is as follows: if ASSD ( Ψ q) <T sSD, then think that this sample block meets copy condition, by block Ψ qimage information copy to area to be repaired; Otherwise adjustment is repaired block and is of a size of (m-1) × (m-1), return and perform step S6, until meet copy condition, carry out block and copy;
S8: add in known region by new filler pixels, upgrades and repairs border; Then upgrade the degree of confidence of filler pixels, complete and once repair, degree of confidence upgrades principle and is: C ( p ) = C ( p ^ ) e - ( ASSD ) 2 , for degree of confidence penalty factor;
S9: check whether area to be repaired is empty, if not empty, then returns and performs S3; Otherwise, stop iteration, finally will repair result and preserve or export.
The present invention compared with prior art has the following advantages:
1. the present invention utilizes full variation mathematical model to be cartoon image by grave mural painting picture breakdown, and the calculating of area to be repaired marginal point priority is driven by cartoon image, eliminate tiny texture and noise to the interference of isophote discriminating direction, take full advantage of the structural information of image, it is more accurate that data item calculates.
2. the present invention adds structure factor item in priority calculates, and fully in conjunction with grave mural painting color clear, the obvious feature of structure, the strong structural region of image is preferentially repaired, ensure that the continuity of structural information.
3. the present invention by ASSD ( Ψ q) with the magnitude relationship of setting threshold value, adaptively reparation block size is adjusted, for structure and the comparatively complicated restoring area of texture, chooses comparatively light maintenance multiblock, inhibit the excessive extension of texture information.
Accompanying drawing explanation
Fig. 1 is process flow diagram of the present invention;
Fig. 2 is sign flag schematic diagram;
Fig. 3 is the mural painting image collected;
Fig. 4 is the image marking damaged area;
Fig. 5 is cartoon image;
Fig. 6 is for repairing image;
Fig. 7 is that innovative point of the present invention probes into case diagram, and in figure, (a) manually marks figure for damaged area; B () is repair process figure of the present invention; C () is the repairing effect figure adopting separately priority of the present invention; D () is the repairing effect figure adopting separately Exemplar Matching of the present invention; E () is for combining the repairing effect figure of above two aspects (i.e. the inventive method);
Fig. 8 adopts Criminisi method respectively, to improve one's methods and the inventive method advertises the repairing effect comparison diagram of figure to grave mural painting Nan Bi in the Northern Qi Dynasty, in figure, (a) is mural painting image, b (), for marking the image of area to be repaired, (c) is the repairing effect figure adopting Criminisi method; D () is for adopting the repairing effect figure improved one's methods; E () is for adopting the inventive method repairing effect figure;
Fig. 9 be adopt Criminisi method, improve one's methods and the inventive method to the repairing effect comparison diagram of grave mural painting in Northern Qi Dynasty east wall pommel horse flags, weapons, etc. carried by a guard of honor, in figure, (a) is mural painting image, b (), for marking the image of area to be repaired, (c) is the repairing effect figure adopting Criminisi method; D () is for adopting the repairing effect figure improved one's methods; E () is for adopting the inventive method repairing effect figure.
Embodiment
First, according to Fig. 2, some symbols are defined.Note I is image to be repaired, and Ω is area to be repaired, and its border is Φ is the known region of image to be repaired, Ψ pfor the multiblock to be repaired centered by a p, n pthe borderline unit normal vector of a p, represent p point isophote direction and intensity.
With reference to the process flow diagram of Fig. 1, the grave mural painting in the Northern Qi Dynasty provided with museum of Shanxi Province is research object, and test, concrete implementation step is as follows:
S1: utilize high definition camera to gather grave mural painting image, during shooting, camera lens is vertical with mural painting to be placed, Fig. 3 is the sub-picture example gathered;
S2: the damaged portion choosing grave mural painting image, is painted with white, as area to be repaired, remainder is as known region, and Fig. 4 is the image marking damaged area;
S3: utilize full variation mathematical model to decompose the image that S2 obtains, obtain the cartoon image of filtering noise and tiny texture, full variation mathematical model is such as formula (1):
E = arg min s &Sigma; e { 1 2 &lambda; ( S e - I e ) 2 + | &dtri; S e | } - - - ( 1 )
Wherein, E represents energy functional, I efor input picture, e is image pixel index, S efor the cartoon image exported, λ is regularization parameter, and span is [0,1], and this example gets λ=0.05, for fidelity item, control image departure degree, for regular terms, with S egradient modulus value characterize, be used for restraint speckle and tiny texture, obtain cartoon image S by solving above formula energy functional minimum value, Fig. 5 is cartoon image;
S4: add structure factor item in priority calculates, and calculate border, cartoon image area to be repaired each point priority, obtain the coordinate of priority maximum point, concrete steps are as follows:
S41: the data item calculating each frontier point according to formula (2), wherein, for pixel is along the illumination change amount in isophote direction;
D ( p ) = | &dtri; I p &perp; &CenterDot; n p | 255 - - - ( 2 )
S42: according to the confidence item of formula (3) computation bound point, time initial, c (i)=0; c (i)=1, | Ψ p| be multiblock Ψ to be repaired parea;
C ( p ) = &Sigma; i &Element; &Psi; p &cap; ( 1 - &Omega; ) C ( i ) | &Psi; p | - - - ( 3 )
S43: the local variance calculating 3 × 3 pieces centered by frontier point, the exponential form of local variance is defined as the structure factor item that priority calculates, local variance V (p) represents, its computing formula is such as formula (4):
V ( p ) = 1 3 &Sigma; R , G , B &sigma; 2 ( x , y ) - - - ( 4 )
X and y is the transverse and longitudinal coordinate of each pixel in region, σ 2(x, y) is 3 × 3 region single channel variance yields;
S44: calculate each marginal point priority, and control confidence item, data item and the structure factor item three effect in priority calculates by coefficient value, priority computing formula is such as formula (5), through experimental verification, the span of α and β is [0,1], this example gets α=β=0.5;
P(p)=αC(p)+β(D(p)+e V(p)) s.t.α+β=1 (5)
S45: select the marginal point that priority is maximum, and obtain its coordinate in cartoon image;
S5: utilize the coordinate obtained, find the point that priority is maximum in the diagram, be designated as a little with point centered by construction size be the multiblock to be repaired of m × m (embodiment gets m=6)
S6: search at known region Φ, finds and multiblock to be repaired the sample block that color Euclidean distance is minimum, as the most similar sample block, is designated as Ψ q;
S7: calculate Ψ qwith multiblock to be repaired average pixel difference quadratic sum, be designated as ASSD ( Ψ q), and with threshold value T sSDcompare, if ASSD ( Ψ q) <T sSD, then think that this sample block meets copy condition, by Ψ qimage information copy to middle area to be repaired; Otherwise, adjustment be of a size of (m-1) × (m-1), return and perform S6, until meet copy condition, carry out block and copy, through experimental verification, T sSDspan be [0,1], this example gets T sSD=0.6, ASSD ( Ψ q) calculate such as formula (6):
ASSD ( &Psi; p ^ , &Psi; q ) = SSD ( &Psi; p ^ , &Psi; q ) &epsiv; &CenterDot; N count - - - ( 6 )
Wherein, SSD ( Ψ q) be with Ψ qthe minimum value of known pixels color Euclidean distance, ε is normalized factor, gets ε=255, N countfor multiblock to be repaired the number of middle known pixels;
S8: new fill area is added in known region Φ, and upgrades border then upgrade the degree of confidence C (p) of filler pixels, complete and once repair.The degree of confidence replacement criteria of new filler pixels is: wherein, for degree of confidence penalty factor, ASSD ( Ψ q) larger, less, the degree of confidence of filler pixels is less; Otherwise the degree of confidence of filler pixels is larger, the going down of error message can be controlled well by penalty factor;
S9: check whether area to be repaired Ω is empty, if not empty, then returns and performs S3; Otherwise stop iteration, finally will repair result and preserve or export, Fig. 6 is final reparation result figure.
Can find out that the inventive method is preferentially repaired the strong structural region of Incomplete image (rectangle frame region) by Fig. 7 (b), repair result and meet vision continuity; Fig. 7 (c) shows that priority computing method of the present invention ensure that the continuity that structural information is repaired, but there is extension problems; Fig. 7 (d) shows that self-adaptation is chosen reparation block size and detail structure and texture are better repaired; Fig. 7 (e) shows that the inventive method preferably resolves the reparation problem of structural breakage, and texture region repairing effect is also more satisfactory.
Can find out that the inventive method has for grave mural painting destroyed area repairing effect by Fig. 8 and Fig. 9 more obviously to improve, the structural region such as figure clothes position, eastern wall pommel horse flags, weapons, etc. carried by a guard of honor figure horse rope position is advertised for Nan Bi, it is more level and smooth that the inventive method repairs lines, and structural continuity is better; For the texture region at eastern wall pommel horse flags, weapons, etc. carried by a guard of honor figure personage's arm position, the inventive method, without excessive extension, comparatively meets vision and appreciates.Table 1 is the index contrast of two groups of image repairing effects, the present invention structural similarity (Structural Similarity, and Y-PSNR (Peak Signal to NoiseRatio SSIM), PSNR) evaluation map is carried out as repairing effect, can find out that the inventive method is compared with Criminisi method, structural similarity at least improves 9.64%, and signal to noise ratio (S/N ratio) improves 5.73%.

Claims (1)

1. a Digital repair method for grave mural painting image, is characterized in that comprising the following steps:
S1: fixing digital camera, makes camera lens vertical with grave mural painting, gathers grave mural painting image;
S2: the damaged portion choosing grave mural painting image, is painted with white, as area to be repaired, remainder is as known region;
S3: construct full variation mathematical model and the image that S2 obtains is decomposed, obtain the cartoon image of filtering noise and tiny texture;
S4: the cartoon image utilizing S3 to obtain carries out the calculating driving priority, detailed process is as follows: calculate the confidence item of edge, cartoon image area to be repaired each point, data item and structure factor item of rectangular block centered by it, according to the priority of priority computing formula edge calculation each point, and obtain the coordinate of priority maximum point;
S5: according to the coordinate in S4, the point finding priority maximum in the image that S2 obtains, is designated as and with point centered by construction size be the multiblock to be repaired of m × m
S6: carry out global search in image known region, find with the block that color Euclidean distance is minimum, as the most similar sample block, is designated as Ψ q;
S7: calculate Ψ qwith multiblock to be repaired average pixel difference quadratic sum, be designated as and with threshold value T sSDcompare, detailed process is as follows: if then think that this sample block meets copy condition, by block Ψ qimage information copy to area to be repaired; Otherwise adjustment is repaired block and is of a size of (m-1) × (m-1), return and perform step S6, until meet copy condition, carry out block and copy;
S8: add in known region by new filler pixels, upgrades and repairs border; Then upgrade the degree of confidence C (p) of filler pixels, complete and once repair, degree of confidence upgrades principle and is: C ( p ) = C ( p ^ ) e - ( ASSD ) 2 , for degree of confidence penalty factor;
S9: check whether area to be repaired is empty, if not empty, then returns and performs S3; Otherwise, stop iteration, finally will repair result and preserve or export.
CN201510177721.4A 2015-04-15 2015-04-15 A kind of Digital repair method of grave mural painting image Expired - Fee Related CN104766283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510177721.4A CN104766283B (en) 2015-04-15 2015-04-15 A kind of Digital repair method of grave mural painting image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510177721.4A CN104766283B (en) 2015-04-15 2015-04-15 A kind of Digital repair method of grave mural painting image

Publications (2)

Publication Number Publication Date
CN104766283A true CN104766283A (en) 2015-07-08
CN104766283B CN104766283B (en) 2017-08-29

Family

ID=53648095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510177721.4A Expired - Fee Related CN104766283B (en) 2015-04-15 2015-04-15 A kind of Digital repair method of grave mural painting image

Country Status (1)

Country Link
CN (1) CN104766283B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108154485A (en) * 2017-12-21 2018-06-12 北京工业大学 A kind of ancient painting restorative procedure based on layering and stroke direction parsing
CN110992282A (en) * 2019-11-29 2020-04-10 忻州师范学院 Automatic calibration and virtual repair method for temple mural diseases

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI336586B (en) * 2007-06-12 2011-01-21 Univ Nat Chunghsing
CN103700093A (en) * 2013-12-03 2014-04-02 杭州电子科技大学 Criminisi image restoration method based on textures and edge features
CN103886561A (en) * 2014-04-09 2014-06-25 武汉科技大学 Criminisi image inpainting method based on mathematical morphology
CN103955906A (en) * 2014-05-21 2014-07-30 武汉科技大学 Criminisi image restoration method based on bat algorithm

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI336586B (en) * 2007-06-12 2011-01-21 Univ Nat Chunghsing
CN103700093A (en) * 2013-12-03 2014-04-02 杭州电子科技大学 Criminisi image restoration method based on textures and edge features
CN103886561A (en) * 2014-04-09 2014-06-25 武汉科技大学 Criminisi image inpainting method based on mathematical morphology
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
侯玉婷 等: "改进的Criminisi图像修复算法研究", 《计算机工程与应用》 *
李俊柏 等: "改进的Criminisi图像修复算法", 《工业控制计算机》 *
林云莉: "数字图像修复算法的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108154485A (en) * 2017-12-21 2018-06-12 北京工业大学 A kind of ancient painting restorative procedure based on layering and stroke direction parsing
CN108154485B (en) * 2017-12-21 2021-07-16 北京工业大学 Ancient painting restoration method based on layering and stroke direction analysis
CN110992282A (en) * 2019-11-29 2020-04-10 忻州师范学院 Automatic calibration and virtual repair method for temple mural diseases

Also Published As

Publication number Publication date
CN104766283B (en) 2017-08-29

Similar Documents

Publication Publication Date Title
CN106651953B (en) A kind of vehicle position and orientation estimation method based on traffic sign
CN102509098B (en) Fisheye image vehicle identification method
CN102768760B (en) Quick image dehazing method on basis of image textures
CN108010081B (en) RGB-D visual odometer method based on Census transformation and local graph optimization
CN103325095B (en) A kind of openness image repair method of sample block of the bonding position factor
CN103578085B (en) Image cavity region based on variable-block method for repairing and mending
CN103455984A (en) Method and device for acquiring Kinect depth image
CN102760285A (en) Image restoration method
CN106204503B (en) Based on the image repair algorithm for improving confidence level renewal function and matching criterior
CN101980285B (en) Method for restoring non-local images by combining GMRF priori
CN104408757B (en) The method and system of haze effect are added in a kind of video to Driving Scene
CN104200210A (en) License plate character segmentation method based on parts
CN110689000B (en) Vehicle license plate recognition method based on license plate sample generated in complex environment
CN104021527B (en) Rain and snow removal method in image
CN103544685A (en) Method and system for beautifying composition of image based on main body adjustment
CN102693534A (en) Quick image stain removing method based on image inpainting technology
CN105719250A (en) Image inpainting method based on simple background, system and shooting camera
CN103955906A (en) Criminisi image restoration method based on bat algorithm
CN104680492A (en) Image repairing method based on sample structure consistency
CN103886561A (en) Criminisi image inpainting method based on mathematical morphology
CN109785255B (en) Large-area image restoration method
CN108898603A (en) Plot segmenting system and method on satellite image
CN114494292A (en) Method and system for extracting building facade glass area
CN106056557A (en) Single image quick defogging method based on improved atmospheric scattering model
CN113128507A (en) License plate recognition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170829

Termination date: 20180415