Log in

View Full Version : UToY, merge


Mounir
21st December 2012, 08:18
I have made a script to tackle chroma bleeding for V only but with mergechroma i'm also modifying U it look like this:

avisource()
o=last
warp1=o.mergechroma(o.blur(1.0).unsharpmask(255,1,1).aWarpSharp(depth=12.0, thresh=0.75, blurlevel=3, cm=1))
warp2=o.mergechroma(warp1.blur(1.0).unsharpmask(255,1,1).aWarpSharp(depth=12.0, thresh=0.75, blurlevel=2, cm=1))
# interleave(o,warp1,warp2) # visualization
warp2


With that the V channel looks great but the U channel is messed up so i want to take the U channel prior of the awarpsharp stage i'd need to use UToY,VToY see http://avisynth.org/mediawiki/VToY but i'm having a hard time here

Didée
21st December 2012, 09:50
clip1 # want U from this
clip2 # want V from this, and Y

YtoUV( clip1.UtoY(), clip2.VtoY(), clip2 )

Mounir
21st December 2012, 20:54
Thanks Didée this is what i was looking for.
The result is strange though awarpsharp create green lines along the edges of objects on the V channel, it does remove the bleeding though

original:
http://imageupload.org/en/file/244916/og.jpg.html

result:
http://imageupload.org/en/file/244917/result.jpg.html

You can clearly see the problem on the words "welcome to..."
The bleeding i want to remove is located on the red objects, lower part of the image