View Single Post
Old 12th July 2016, 12:38   #971  |  Link
mpxman
Registered User
 
Join Date: Jun 2016
Posts: 15
Why video is cropped second time by using est_left est_top est_right and est_bottom? Can left, top right and bottom parts be harmful for depanning?

Code:
est_left=20   est_top=60  est_right=60  est_bottom=60  #crop values for special Estimate clip

stab_reference= source1.crop(20,20,-20,-20).colorYUV(autogain=true).crop(est_left,est_top,-est_right,-est_bottom)
For me cropping causes that FFT windows size is halved and stabilizing stops working because trust value increases.

Be default
winx - number of columns (width) of fft window (default = 0 for maximum power of 2 within frame width).
winy - number of rows (height) of fft window (default = 0 for maximum power of 2 within frame height).


Could the FFT window be expanded to match stab_reference or is this avoidable? Would this cropping be ok?
Code:
est_left=20   est_top=20  est_right=20  est_bottom=20  #crop values for special Estimate clip

stab_reference= source1.crop(est_left,est_top,-est_right,-est_bottom).colorYUV(autogain=true)

data=DePanEstimate(stab_reference,trust=trust_value,dxmax=maxstabH,dymax=maxstabV, winx=stab_reference.Width , winy=stab_reference.Height)
Grayscale image is not centralized because the crop(20,20,-20,-20).
Code:
result5= overlay(source1,greyscale(stab_reference),x=est_left,y=est_top).addborders(2,2,2,2,$FFFFFF).Lanczos4Resize(WS,HS)
mpxman is offline   Reply With Quote