Video Operations in the Gradient Domain
- 格式:pdf
- 大小:7.10 MB
- 文档页数:31
1VideoOperationsintheGradientDomain
Iddo Drori Tommer Leyvand Shachar Fleishman Daniel Cohen-Or Hezy Yeshurun
Abstract
Fusionofimagesequencesisafundamentaloperationinnumerousvideoapplicationsandusuallyconsistsofsegmentation,mattingandcompositing.Wepresentaunifiedframeworkforperformingtheseoperationsonvideointhegradientdomain.Ourapproachconsistsof3Dgraphcutcomputationfollowedbyreconstructionofanew3DvectorfieldbysolvingthePoissonequation.Weintroducenewmethodsforfusingvideosmoothlyandseparatingforegroundelementsfromavideobackgroundforcompositingbydefiningsmoothandsharptransitionconstraintsonagradientvideocompositingequation.Wedemonstratetheapplicabilityofsmoothvideotransitionsbyfusingpairsforvideomosaics,videofolding,andvideotexturesynthesis,anddemonstratetheapplicabilityofsharpvideotransitionsbyvideosegmentation,videotrimapextractionand3Dcompositingintoanewsequence.Ourresultsdemonstratethatourmethodmaintainscoherenceofthevideomatteandcomposite,andavoidstemporalartifacts.
IndexTerms
Videoprocessing,gradientdomain,objectsegmentation,graphcuts,splinefitting,motionestima-tion.
I.INTRODUCTIONCOMPOSITINGvideoandseparatingforegroundvideoelementsfromavideoback-
groundforcompositing,aswellasbackgroundvideocompletion,areoperationsrequired
intheproductionofmostmodernmotionpictures.Smoothlyfusingpartsofvideoisimportant
foranumberofapplications:videomosaics,videotexturesynthesis,andvideofoldingbyreusing2
partsofvideofootage.Separatingforegroundandbackgroundisrequiredforcreatingavideo
mattewhichisusedforcompositingelementsintoanewbackground.
Compositingistheprocessofseamlesslycombiningmultipleimageorvideoregions.Itis
commonlyusedincreatingmosaics,editing,andtexturesynthesis.Imageandvideomosaics
areusedinapplicationsinwhichtherearemultiplesources,eachwithalimitedfieldofview
orfromadifferentorigin.Thegoalistomergethesesourcestoformasinglemosaic.Thisis
performedbyfirstaligningthesourcesbywarpingandthensmoothlyblendingtheoverlapping
regions.Imageandvideoeditingoperationsincludetemporaltransitions,placingafigureover
abackground,andseamlesslycombiningdifferentimageorvideoregions.Texturesynthesis
commonlyconsistsofsearchingforsimilarpatchesfollowedbymergingthemtogether.These
applicationsinvolvecompositingasanessentialstepoftheprocess.
Naturalmattingistheinverseproblemofderivingalphavaluesaroundobjectboundariesby
whichbackgroundandforegroundpixelsareblended.Theoperationsofcompositingandmatting
arethereforelinkedbythecompositingequationwhichdefinesthecolorofapixelasaconvex
combinationofforegroundandbackgroundpixels.Theinputtovideomattingisthecomposite
videoandatrimapwhichconsistsofthreegrayscalevaluesdenotingbackground,foreground
andunknownvideoregions.Mattingisderivedfromthecompositingequationandrequires
backgroundvideocompletionandforegroundestimationaswellasatrimap.Backgroundvideo
completionistheprocessoffillinginmissingregionsinvideobasedontemporalandspatial
information.Segmentationofavideointolayers,compositing,mattingandcompletionareall
inherentlylinkedbytheirrequiredinput-outputandusage.Computingatrimapandbackground
videocompletion,inturn,requireroughsegmentationoftheforegroundandcompositingofthe
completedvideobackground.3
A.Overview
Ourapproachistoworkin3Dwithvideovolumesinthegradientdomain.Therefore,we
representthecompositingequationforvideovolumesanddifferentiate.Workinginthegradient
domainallowsperforminglocaloperationstogetaglobaleffect.Thedifferentiationtransforms
theequationintodifferentialcoordinatesandresultsinthegradientvideocompositingequation.
Next,wezeroouttermsintheequationaccordingtotheapplication,whetheritrequiresa
smoothtransitionbetweenvideosorsharptransitionsbetweenuniformvideoregions.Anew
three-dimensionalvectorfieldresultsfromremovingtermsfromthegradientvideocompositing
equation.Thisvectorfieldisreconstructedtogetthefinalresult.Frame-by-framegradient
operationsgiverisetostrongtemporalartifactswhicharenoticeableinvideo,andtherefore,we
extendthereconstructionequationstothreedimensions.
Wedevelopanduseseveraltoolsinthiswork.Thefirstis3Dminimumgraphcutsandthe
secondisreconstructionfromamodified3DvectorfieldbysolvingthePoissonequation.The
typesofcutsanditerationsdifferforthedifferentapplicationsofvideofusionandseparation.
Thenewvectorfieldsaredefinedwithrespecttothecut,andtheresultofsolvingthe3DPoisson
equationisanewvideoormatteaccordingtotheapplication.Inadditionweuse3Dsplines
tofitpositionsoftrackerdataand2Dsplinestomarkregionsaroundforegroundelementsin
afewkey-framesandinterpolatebetweenthem.Finally,motionestimationisusedforthecut
computationandintemporalbackgroundvideocompletion.
Graphpartitioningtechniquesarecommonlyusedforimageandobjectsegmentation,for
stitchingtogetheralignedimagestoformmosaics,andfortexturesynthesis.Thegraphis