deleted user
Unregistered
Thanks:
Given thank(s) in post(s)
deleted user
Unregistered
Thanks:
Given thank(s) in post(s)
Posts: 7,151
Threads: 601
Joined: 2015 Jan
Thanks: 1081
Given 1497 thank(s) in 969 post(s)
Country:
So I'd use mode=1 or mode=2, as mode=3 would scale both... stuck with the best source, and let the other be scaled; you should get a better quality.
deleted user
Unregistered
Thanks:
Given thank(s) in post(s)
Quality is already pretty fine. Plus, in a handful of situations I seem to be getting a little bit more image this way, mostly horizontally. I prefer it like this. But good point in general.
Posts: 195
Threads: 2
Joined: 2017 Dec
Thanks: 12
Given 250 thank(s) in 89 post(s)
Country:
deleted user
Unregistered
Thanks:
Given thank(s) in post(s)
Thanks, random.next, now it makes a little more sense in my head.
By the way guys, I have come up with an idea to align scenes that are a little tough otherwise:
Code: src2 = src2.BilinearResize(1920,1080)
src2edge=src2.converttoyv12().mt_edge(mode="min/max").converttoyv24()
srcdehalo2edge = srcdehalo2.converttoyv12().mt_edge(mode="min/max").converttoyv24()
config=OverlayConfig(subpixel=2,minOverlayArea=95,minSourceArea=95,scaleBase=1.1,minSampleArea=100,requiredSampleArea=200,acceptableDiff=15)
OverlayEngine(srcdehalo2edge.ConvertToY8(), src2edge.ConvertToY8(), configs=config,editor=false,maxDiff=20,backwardFrames=0)
OverlayRender(srcdehalo2.ConvertToYV24(), src2.ConvertToYV24(), debug=false, noise=0,\
upsize="Spline64Resize", mode=3, gradient=10,coloradjust=2,width=1920,height=1080,opacity=0.5)
ConvertToRGB24()
The trick is, you feed the OverlayEngine not with the video itself, but with an edge-detection run on the original video. From what I've tried so far, it works surprisingly well. Sadly the mt_edge filter is a bit ... problematic and produces weird artifacts, including some green cast over the entire image ... buggy thing.
That said ... once there is some amount of sharp detail in the image, it very quickly "snaps" on and then doesn't let go anymore.
You can see that this method can be tweaked and improved a lot. Currently the mt_edge is the best I could find and it only does a kind of "tresholding". If you find a more conservative filter that doesn't show "on or off" but instead a continuum of edge "intensity", then this could work very well even for less sharp details. In either case, mt_edge needs to go, it's ridiculously bugged up.
Maybe it can even be combined ... making an Overlay of the original image and the edge detection ... or maybe putting them in different channels, if OverlayEngine ever supports that. Or maybe using the detected edges as a "multiply" overlay or simply an alpha mask to mask away all unimportant parts, making overlay based purely on significant details in the image, not on color areas.
Etc. etc. 
Posts: 7,151
Threads: 601
Joined: 2015 Jan
Thanks: 1081
Given 1497 thank(s) in 969 post(s)
Country:
Using this plugin since few weeks, and slowly started to know it better; it's almost perfect - if you use the right settings, of course; the only shots that (sometimes) fail are the ones totally white or black (or a shot with even colors/features), because it has no reference points, so it's not a real fault, as it would be impossible to align two of those kinds.
So, as I wrote before, I give it 99% - and the missing 1% to be perfect is not that previous problem - I can live with it - but a missing feature... yes, you know, custom border color!
I know I could get the mask running twice the plugin - one for the video, one for the mask - but it takes twice the time... so, getting a new optional custom border color would help. More, the best thing would be to have the chance of setting corners and borders colors separately - and the perfect thing to have top left and right and bottom left and right corners colors, as well as top/bottom and left/right borders.
Why? Well, sometimes you get just one "empty" corner, and would like to fill it using inpaint; having just that corner with a given color would help a lot - I know that inpaint is far from perfection, but sometimes would be possible to get good result... sometimes!
An example of what I mean:
As now, the plugin would give as result the image with black corners, and black borders on left and right; if it would be possible to set corner colors, inpaint could be easily used.
OK, I asked it enough. Still hope random.next would add this little feature - maybe if someone else will ask for it, he would be more motivated... anyone? Tom? 
deleted user
Unregistered
Thanks:
Given thank(s) in post(s)
I would prefer some implementation with alpha channel. Having a specific color is problematic because it it would mix with the color at the border and not make a perfect mask.
That said, the code is open source, so it doesn't have to be random.next implementing these wishes in principle, just someone who can program or is willing to learn it. spoRv, you might like programming yourself, you already know scripting, so you kind of understand the basics.
Posts: 7,151
Threads: 601
Joined: 2015 Jan
Thanks: 1081
Given 1497 thank(s) in 969 post(s)
Country:
deleted user
Unregistered
Thanks:
Given thank(s) in post(s)
|